Skip to content

Commit 9ef46a2

Browse files
committed
build(apk): publish on jitpack
1 parent efe413f commit 9ef46a2

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Kukariri 🧠
22

33
[![codecov](https://codecov.io/gh/elimu-ai/kukariri/branch/main/graph/badge.svg?token=LFJL11C0TC)](https://codecov.io/gh/elimu-ai/kukariri)
4+
[![Release](https://jitpack.io/v/elimu-ai/kukariri.svg)](https://jitpack.io/#elimu-ai/kukariri)
45

56
Android application which handles the Spaced Repetition System (SRS)
67

@@ -14,6 +15,11 @@ Then, [4 minutes](https://github.com/elimu-ai/kukariri/blob/main/app/src/main/ja
1415

1516
![WordAssessmentActivity](https://github.com/user-attachments/assets/e6c5cf75-13f6-4b8b-9978-3756e52dd0a7)
1617

18+
## Installation
19+
20+
> [!IMPORTANT]
21+
> Note: This app depends on the [elimu.ai Content Provider](https://github.com/elimu-ai/content-provider) to be installed.
22+
1723
## Development 👩🏽‍💻
1824

1925
Compile APK:
@@ -25,7 +31,7 @@ Compile APK:
2531
Install APK:
2632

2733
```
28-
adb install app/build/outputs/apk/debug/ai.elimu.analytics-<versionCode>-debug.apk
34+
adb install app/build/outputs/apk/debug/app-debug-unsigned.apk
2935
```
3036

3137
### Code Coverage
@@ -55,7 +61,7 @@ If you want to make changes to the elimu.ai Content Provider's utility library,
5561
<img src="https://github.com/elimu-ai/webapp/blob/main/src/main/webapp/static/img/logo-text-256x78.png" />
5662
</p>
5763
<p align="center">
58-
elimu.ai - Free open-source learning software for out-of-school children ✨🚀
64+
elimu.ai - Free open-source learning software for out-of-school children 🚀✨
5965
</p>
6066
<p align="center">
6167
<a href="https://elimu.ai">Website 🌐</a>

app/build.gradle

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'com.mxalbert.gradle.jacoco-android'
33
apply plugin: 'dagger.hilt.android.plugin'
44
apply plugin: 'org.jetbrains.kotlin.android'
55
apply plugin: 'kotlin-kapt'
6+
apply plugin: 'maven-publish'
67

78
jacoco {
89
toolVersion = "0.8.10"
@@ -18,7 +19,6 @@ android {
1819
targetSdkVersion 35
1920
versionCode 1000007
2021
versionName "1.0.7-SNAPSHOT"
21-
setProperty("archivesBaseName", "${applicationId}-${versionCode}")
2222
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2323
}
2424

@@ -56,10 +56,10 @@ android {
5656
dependencies {
5757
implementation fileTree(dir: 'libs', include: ['*.jar'])
5858

59-
implementation libs.elimu.model // See https://jitpack.io/#elimu-ai/model
60-
implementation libs.elimu.content.provider // See https://jitpack.io/#elimu-ai/content-provider
61-
implementation libs.elimu.analytics // See https://jitpack.io/#elimu-ai/analytics
62-
implementation libs.elimu.common.utils
59+
implementation libs.elimu.model // https://jitpack.io/#elimu-ai/model
60+
implementation libs.elimu.content.provider // https://jitpack.io/#elimu-ai/content-provider
61+
implementation libs.elimu.analytics // https://jitpack.io/#elimu-ai/analytics
62+
implementation libs.elimu.common.utils // https://jitpack.io/#elimu-ai/common-utils
6363

6464
implementation libs.androidx.appcompat
6565
implementation libs.androidx.constraint.layout
@@ -78,3 +78,14 @@ dependencies {
7878
androidTestImplementation libs.androidx.junit
7979
androidTestImplementation libs.androidx.espresso
8080
}
81+
82+
publishing {
83+
publications {
84+
apk(MavenPublication) {
85+
artifact("${buildDir}/outputs/apk/release/app-release-unsigned.apk")
86+
}
87+
}
88+
}
89+
tasks.named("publishApkPublicationToMavenLocal") {
90+
mustRunAfter(":app:assembleRelease")
91+
}

0 commit comments

Comments
 (0)