Skip to content

Commit fe00708

Browse files
committed
feat(android): add JitPack configuration for building AAR package
1 parent bc6cf44 commit fe00708

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

jitpack.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
jdk:
2+
- openjdk17
3+
install:
4+
- make aar ANDROID_NDK=$ANDROID_HOME/ndk-bundle
5+
- cd packages/android
6+
- ./gradlew publishToMavenLocal -PVERSION=$JITPACK_VERSION

packages/android/build.gradle

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
}
1010

1111
apply plugin: 'com.android.library'
12+
apply plugin: 'maven-publish'
1213

1314
android {
1415
namespace 'ai.sqlite.vector'
@@ -44,5 +45,18 @@ repositories {
4445
}
4546

4647
dependencies {
47-
api 'com.github.requery:sqlite-android:3.49.0'
48+
}
49+
50+
afterEvaluate {
51+
publishing {
52+
publications {
53+
release(MavenPublication) {
54+
groupId = 'ai.sqlite'
55+
artifactId = 'vector'
56+
version = project.hasProperty('VERSION') ? project.VERSION : ['make', 'version'].execute(null, file('../..')).text.trim()
57+
58+
artifact bundleReleaseAar
59+
}
60+
}
61+
}
4862
}

0 commit comments

Comments
 (0)