Skip to content

Commit acbc958

Browse files
authored
Merge pull request #315 from elimu-ai/appstore-2.5.0
chore(deps): appstore 2.5.0
2 parents 2590dfb + 5bc1c32 commit acbc958

File tree

8 files changed

+24
-164
lines changed

8 files changed

+24
-164
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ To perform a release, follow these steps:
169169
170170
> [!IMPORTANT]
171171
> After you publish a new release, remember to also bump the version in all Android app repos that depend on the `utils` library:
172-
> * https://github.com/elimu-ai/common-utils/blob/main/gradle/libs.versions.toml
173172
> * https://github.com/elimu-ai/kukariri/blob/main/gradle/libs.versions.toml
174173
> * https://github.com/elimu-ai/herufi/blob/main/gradle/libs.versions.toml
175174
> * https://github.com/elimu-ai/vitabu/blob/main/gradle/libs.versions.toml
@@ -181,7 +180,7 @@ To perform a release, follow these steps:
181180
<img src="https://github.com/elimu-ai/webapp/blob/main/src/main/webapp/static/img/logo-text-256x78.png" />
182181
</p>
183182
<p align="center">
184-
elimu.ai - Free open-source learning software for out-of-school children ✨🚀
183+
elimu.ai - Free open-source learning software for out-of-school children 🚀✨
185184
</p>
186185
<p align="center">
187186
<a href="https://elimu.ai">Website 🌐</a>

app/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
applicationId "ai.elimu.content_provider"
1616
minSdkVersion 26
1717
targetSdkVersion 35
18-
versionCode 1002057
19-
versionName "1.2.57-SNAPSHOT"
18+
versionCode 1003000
19+
versionName "1.3.0-SNAPSHOT"
2020
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2121
javaCompileOptions {
2222
annotationProcessorOptions {
@@ -49,9 +49,8 @@ android {
4949

5050
dependencies {
5151
implementation fileTree(dir: 'libs', include: ['*.jar'])
52-
implementation project(':utils')
5352

54-
implementation(libs.elimu.model) // https://jitpack.io/#ai.elimu/model
53+
implementation(libs.elimu.appstore) // https://jitpack.io/#ai.elimu/appstore
5554

5655
implementation(libs.commons.io)
5756
implementation(libs.material)
@@ -70,7 +69,6 @@ dependencies {
7069

7170
// Room components
7271
implementation(libs.androidx.room.runtime)
73-
implementation libs.androidx.core.ktx
7472
implementation libs.androidx.lifecycle.viewmodel.ktx
7573
annotationProcessor(libs.androidx.room.compiler)
7674
androidTestImplementation(libs.androidx.room.testing)

app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,5 @@
8181
android:name="android.support.FILE_PROVIDER_PATHS"
8282
android:resource="@xml/video_file_path"/>
8383
</provider>
84-
85-
<provider
86-
android:name=".provider.SharedDataProvider"
87-
android:authorities="${applicationId}.provider.shared_data"
88-
android:enabled="true"
89-
android:exported="true"
90-
android:grantUriPermissions="true">
91-
92-
<grant-uri-permission android:pathPattern=".*"/>
93-
94-
</provider>
95-
9684
</application>
9785
</manifest>

app/src/main/java/ai/elimu/content_provider/MainActivity.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package ai.elimu.content_provider
22

33
import ai.elimu.content_provider.language.SelectLanguageActivity
44
import ai.elimu.content_provider.util.SharedPreferencesHelper
5-
import ai.elimu.content_provider.utils.LanguageUtils
65
import android.content.Intent
76
import android.os.Bundle
87
import android.util.Log
@@ -30,8 +29,7 @@ class MainActivity : AppCompatActivity() {
3029
val language = SharedPreferencesHelper.getLanguage(
3130
applicationContext
3231
)
33-
Log.i("getLanguage", "language: $language. \nFrom utils: " +
34-
"${LanguageUtils.getLanguage(this@MainActivity, BuildConfig.APPLICATION_ID)}")
32+
Log.i(javaClass.name, "language: ${language}")
3533
if (language == null) {
3634
// Redirect to language selection
3735

app/src/main/java/ai/elimu/content_provider/provider/SharedDataProvider.kt

Lines changed: 0 additions & 88 deletions
This file was deleted.

app/src/test/java/ai/elimu/content_provider/utils/LanguageUtilsTest.kt

Lines changed: 0 additions & 40 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[versions]
2-
elimuModel = "model-2.0.102"
3-
elimuAnalytics = "3.1.37"
2+
elimuAppstore = "2.5.0"
43
commonsIo = "2.19.0"
5-
agp = "8.5.2"
4+
agp = "8.6.0"
65
material = "1.12.0"
76
retrofit = "2.11.0"
87
junit = "4.13.2"
@@ -15,13 +14,11 @@ lifecycleExtensions = "2.2.0"
1514
room = "2.7.1"
1615
androidXJunit = "1.2.1"
1716
androidXEspresso = "3.6.1"
18-
coreKtx = "1.15.0"
1917
lifecycleViewmodelKtx = "2.8.7"
2018
kotlin = "2.1.20"
2119

2220
[libraries]
23-
elimu-model = { group = "ai.elimu", name = "model", version.ref = "elimuModel" }
24-
elimu-analytics = { group = "ai.elimu", name = "analytics", version.ref = "elimuAnalytics" }
21+
elimu-appstore = { group = "ai.elimu", name = "appstore", version.ref = "elimuAppstore" }
2522
commons-io = { group = "commons-io", name = "commons-io", version.ref = "commonsIo" }
2623
agp = { module = "com.android.tools.build:gradle", version.ref = "agp" }
2724
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
@@ -40,7 +37,6 @@ androidx-espresso = { group = "androidx.test.espresso", name = "espresso-core",
4037
retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
4138
retrofit-gson = { group = "com.squareup.retrofit2", name = "converter-gson", version.ref = "retrofit" }
4239
junit = { group = "junit", name = "junit", version.ref = "junit" }
43-
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
4440
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "lifecycleViewmodelKtx" }
4541

4642
[plugins]

utils/build.gradle

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ android {
1414
defaultConfig {
1515
minSdkVersion 26
1616
targetSdkVersion 35
17-
versionCode 1002057
18-
versionName "1.2.57-SNAPSHOT"
17+
versionCode 1003000
18+
versionName "1.3.0-SNAPSHOT"
1919
}
2020

2121
buildTypes {
@@ -33,18 +33,27 @@ android {
3333
}
3434

3535
dependencies {
36-
implementation(libs.elimu.model) // https://jitpack.io/#ai.elimu/model
37-
implementation(libs.elimu.analytics) // https://jitpack.io/#ai.elimu/analytics
36+
implementation(libs.elimu.appstore) // https://jitpack.io/#ai.elimu/appstore
3837

39-
implementation libs.androidx.core.ktx
40-
41-
testImplementation libs.junit
38+
testImplementation(libs.junit)
4239
}
4340

4441
publishing {
4542
publications {
4643
aar(MavenPublication) {
44+
groupId = "ai.elimu"
45+
artifactId = "content-provider"
46+
version = android.defaultConfig.versionName
4747
artifact("${buildDir}/outputs/aar/utils-release.aar")
48+
pom.withXml {
49+
def dependenciesNode = asNode().appendNode('dependencies')
50+
configurations.implementation.allDependencies.each {
51+
def dependencyNode = dependenciesNode.appendNode('dependency')
52+
dependencyNode.appendNode('groupId', it.group)
53+
dependencyNode.appendNode('artifactId', it.name)
54+
dependencyNode.appendNode('version', it.version)
55+
}
56+
}
4857
}
4958
}
5059
}

0 commit comments

Comments
 (0)