From ad86d2a96f88b704734bb0eff55d60b318f6ee57 Mon Sep 17 00:00:00 2001
From: jo-elimu <1451036+jo-elimu@users.noreply.github.com>
Date: Tue, 7 Nov 2023 15:06:05 +0700
Subject: [PATCH 1/2] chore: prepare 1.2.13
---
app/build.gradle | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/build.gradle b/app/build.gradle
index af1ac09..901691d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -8,8 +8,8 @@ android {
applicationId "ai.elimu.content_provider"
minSdkVersion 24
targetSdkVersion 33
- versionCode 1002012
- versionName "1.2.12-SNAPSHOT"
+ versionCode 1002013
+ versionName "1.2.13-SNAPSHOT"
setProperty("archivesBaseName", "${applicationId}-${versionCode}")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
From 002d6e7d17a01c4a0e897819819c028a060684e3 Mon Sep 17 00:00:00 2001
From: jo-elimu <1451036+jo-elimu@users.noreply.github.com>
Date: Tue, 7 Nov 2023 16:31:51 +0700
Subject: [PATCH 2/2] docs: Describe localhost development
---
README.md | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/README.md b/README.md
index e8c8d44..4c1392f 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,46 @@ For an example of another Android app using the `utils` library, see the Vitabu
1. https://github.com/elimu-ai/vitabu/blob/main/build.gradle
1. https://github.com/elimu-ai/vitabu/blob/main/app/build.gradle
+## Development 👩🏽💻
+
+During development, you can choose between 3 build types:
+1. `debug`
+2. `qa_test`
+3. `release`
+
+By default, both `debug` and `qa_test` are pointing to a webapp
+[test server](https://github.com/elimu-ai/webapp/blob/main/INSTALL.md#test-server). And if you want
+to run the webapp yourself on `localhost` while testing the Content Provider app, you can change
+the return value of the `getBaseUrl` method in
+[BaseApplication.java](app/src/main/java/ai/elimu/content_provider/BaseApplication.java):
+```java
+// return url;
+ return "http://192.168.xxx.xxx:8080/webapp";
+```
+
+Use the `ifconfig` or `ipconfig` to get your IPv4 address.
+
+You will also have to enable http connections by adding the following file to
+`app/src/main/res/network_security_config.xml`:
+```xml
+
+
+
+
+
+
+
+
+```
+
+And then adding it to [AndroidManifest.xml](app/src/main/AndroidManifest.xml):
+```xml
+