Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 8996266d authored by Ricki Hirner's avatar Ricki Hirner Committed by GitHub
Browse files

Improve build speed with gradle configuration cache (#154)

- remove Locator dependency (closes #153)
- disable per-app language preferences for now (can be enabled later when AGP 8.1.0 is ready)
parent eb0dde67
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
apply plugin: 'com.google.devtools.ksp'
apply plugin: 'com.arnyminerz.locator'

android {
    compileSdkVersion 33
+0 −10
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@
        android:requestLegacyExternalStorage="true"
        android:theme="@style/AppTheme"
        android:enableOnBackInvokedCallback="true"
        android:localeConfig="@xml/locales_config"
        tools:ignore="UnusedAttribute">

        <service
@@ -127,15 +126,6 @@
            android:label="@string/activity_app_info"
            android:parentActivityName=".ui.CalendarListActivity" />

        <!-- Allows language selection for Android 12- -->
        <service
            android:name="androidx.appcompat.app.AppLocalesMetadataHolderService"
            android:enabled="false"
            android:exported="false">
            <meta-data
                android:name="autoStoreLocales"
                android:value="true" />
        </service>
    </application>

</manifest>
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ buildscript {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
        classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:${versions.aboutLibs}"
        classpath "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:${versions.kotlin}-${versions.ksp}"
        classpath "com.arnyminerz.locator:Locator:1.0.2"
    }
}

+6 −1
Original line number Diff line number Diff line
# [https://developer.android.com/build/optimize-your-build#optimize]
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx4g
org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m

# use AndroidX
android.useAndroidX=true
android.databinding.incremental=true

# configuration cache [https://developer.android.com/build/optimize-your-build#use-the-configuration-cache-experimental]
org.gradle.unsafe.configuration-cache=true
org.gradle.unsafe.configuration-cache-problems=warn