diff --git a/app/build.gradle b/app/build.gradle index ff6c906..2ca6aa7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,12 +7,21 @@ android { namespace 'org.hydev.wearsync' compileSdk 33 + sourceSets { + main { + jniLibs.srcDirs = ['libs'] + } + } + defaultConfig { applicationId "org.hydev.wearsync" minSdk 26 targetSdk 33 versionCode 1 versionName "1.0" + ndk { + abiFilters "aarch64", "armeabi", "arm64", "x86", "x86_64" + } testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -23,13 +32,16 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + kotlinOptions { jvmTarget = '1.8' } + buildFeatures { viewBinding true } @@ -58,6 +70,13 @@ dependencies { implementation "org.jetbrains.exposed:exposed-core:0.40.1" implementation "org.jetbrains.exposed:exposed-dao:0.40.1" implementation "org.jetbrains.exposed:exposed-jdbc:0.40.1" + + // !IMPORTANT! Make sure to update native so when updating sqlite-jdbc + // Copy from sqlite-jdbc-3.40.0.0.jar!/org/sqlite/native/Linux-Android to app/libs + // ln -s arm armeabi + // ln -s arm armeabi-v7a + // ln -s aarch64 arm64 + // ln -s aarch64 arm64-v8a implementation 'org.xerial:sqlite-jdbc:3.40.0.0' // Root library diff --git a/app/libs/aarch64/libsqlitejdbc.so b/app/libs/aarch64/libsqlitejdbc.so new file mode 100644 index 0000000..3428671 Binary files /dev/null and b/app/libs/aarch64/libsqlitejdbc.so differ diff --git a/app/libs/arm/libsqlitejdbc.so b/app/libs/arm/libsqlitejdbc.so new file mode 100644 index 0000000..4fd6834 Binary files /dev/null and b/app/libs/arm/libsqlitejdbc.so differ diff --git a/app/libs/arm64 b/app/libs/arm64 new file mode 120000 index 0000000..ec41841 --- /dev/null +++ b/app/libs/arm64 @@ -0,0 +1 @@ +aarch64 \ No newline at end of file diff --git a/app/libs/arm64-v8a b/app/libs/arm64-v8a new file mode 120000 index 0000000..ec41841 --- /dev/null +++ b/app/libs/arm64-v8a @@ -0,0 +1 @@ +aarch64 \ No newline at end of file diff --git a/app/libs/armeabi b/app/libs/armeabi new file mode 120000 index 0000000..78504ba --- /dev/null +++ b/app/libs/armeabi @@ -0,0 +1 @@ +arm \ No newline at end of file diff --git a/app/libs/armeabi-v7a b/app/libs/armeabi-v7a new file mode 120000 index 0000000..78504ba --- /dev/null +++ b/app/libs/armeabi-v7a @@ -0,0 +1 @@ +arm \ No newline at end of file diff --git a/app/libs/x86/libsqlitejdbc.so b/app/libs/x86/libsqlitejdbc.so new file mode 100644 index 0000000..2d3f379 Binary files /dev/null and b/app/libs/x86/libsqlitejdbc.so differ diff --git a/app/libs/x86_64/libsqlitejdbc.so b/app/libs/x86_64/libsqlitejdbc.so new file mode 100644 index 0000000..04b7e95 Binary files /dev/null and b/app/libs/x86_64/libsqlitejdbc.so differ