Skip to content

CircleToSearch with multi search engine support for all android

Kotlin

reduced app size from 31mb to 10mb

AKS Labsf4c651186c2f
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 78e1bb1..41a68f3 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -38,6 +38,10 @@ android {
versionName = "0.4"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
+
+ ndk {
+ abiFilters.addAll(listOf("arm64-v8a", "armeabi-v7a"))
+ }
}
buildTypes {
@@ -48,9 +52,15 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
- // Enable R8 full mode for more aggressive optimization
- // This is usually done in gradle.properties, but can be influenced here indirectly
- // by using the "proguard-android-optimize.txt" which includes optimization rules.
+ }
+
+ getByName("debug") {
+ isMinifyEnabled = true
+ isShrinkResources = true
+ proguardFiles(
+ getDefaultProguardFile("proguard-android-optimize.txt"),
+ "proguard-rules.pro"
+ )
}
}
compileOptions {
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index b042b00..e6c479c 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -40,6 +40,7 @@
android:supportsRtl="true"
android:theme="@style/Theme.CircleToSearch"
android:enableOnBackInvokedCallback="true"
+ android:extractNativeLibs="true"
tools:targetApi="31">
<activity
android:name=".MainActivity"
diff --git a/build_errors_32.txt b/build_errors_32.txt
new file mode 100644
index 0000000..d1191af
Binary files /dev/null and b/build_errors_32.txt differ