remove unused dependencies and compress native libraries

This commit is contained in:
Helium314 2023-08-29 07:52:18 +02:00
parent 38edc6fb3e
commit 6475ed7d74
3 changed files with 9 additions and 6 deletions

View file

@ -45,14 +45,19 @@ android {
noCompress 'main.dict' noCompress 'main.dict'
noCompress 'empty.dict' noCompress 'empty.dict'
} }
packagingOptions {
jniLibs {
// shrinks APK by 3 MB, zipped size unchanged
useLegacyPackaging true
}
}
} }
dependencies { dependencies {
implementation 'com.google.code.findbugs:jsr305:3.0.2' implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.3.1'
implementation 'androidx.recyclerview:recyclerview:1.3.0' // Replaces recyclerview:1.0.0 included by above dependency
implementation 'androidx.core:core-ktx:1.10.1' implementation 'androidx.core:core-ktx:1.10.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.viewpager2:viewpager2:1.0.0'
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
} }

View file

@ -47,8 +47,7 @@
android:supportsRtl="true" android:supportsRtl="true"
android:allowBackup="true" android:allowBackup="true"
android:defaultToDeviceProtectedStorage="true" android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true" android:directBootAware="true">
android:extractNativeLibs="false">
<!-- Services --> <!-- Services -->
<service android:name="LatinIME" <service android:name="LatinIME"

View file

@ -1,3 +1,2 @@
android.enableJetifier=true
android.useAndroidX=true android.useAndroidX=true
org.gradle.jvmargs=-Xmx1024m org.gradle.jvmargs=-Xmx1024m