diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4434b5da6ab7e16ce02d0e70c018ade234e7f9c7..8c1b54c2b72624b73f5c28f35b536d41a773ca11 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest"
stages:
+- check
- build
before_script:
@@ -12,10 +13,20 @@ cache:
paths:
- .gradle/
+spotless:
+ stage: check
+ script:
+ - ./gradlew spotlessCheck
+
+lint:
+ stage: check
+ script:
+ - ./gradlew lint
+
build:
stage: build
script:
- - ./gradlew build
+ - ./gradlew assembleRelease
artifacts:
paths:
- app/build/outputs/apk
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 0e76195b4da97f97f9b97f34c20552ffd8738e26..12b6dddea8337a1af5fa2c6073de22e84c081d4a 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -23,9 +23,9 @@ if (localPropsFile.exists()) {
}
val appendDebugSuffix = (localProps.getProperty("appendDebugSuffix") ?: "true").toBoolean()
-val keyStorePath = localProps.getProperty("keyStorePath") ?: "/keystore/debug.keystore"
+val keyStorePath = localProps.getProperty("keyStorePath") ?: "/keystore/platform.keystore"
val keyStorePassword = localProps.getProperty("keyStorePassword") ?: "android"
-val signingKeyAlias = localProps.getProperty("keyAlias") ?: "androiddebugkey"
+val signingKeyAlias = localProps.getProperty("keyAlias") ?: "platform"
val signingKeyPassword = localProps.getProperty("keyPassword") ?: "android"
android {
@@ -59,6 +59,12 @@ android {
}
signingConfig = signingConfigs.getByName("debug")
}
+
+ create("benchmark") {
+ signingConfig = signingConfigs.getByName("debug")
+ matchingFallbacks += listOf("release")
+ isDebuggable = false
+ }
}
signingConfigs {
@@ -106,7 +112,15 @@ android {
buildFeatures { viewBinding = true }
- lint { abortOnError = false }
+ lint {
+ abortOnError = false
+ checkReleaseBuilds = false
+ warningsAsErrors = true
+ disable.add("PluralsCandidate")
+ disable.add("MissingTranslation")
+ disable.add("UnusedResources")
+ baseline = file("lint-baseline.xml")
+ }
}
dependencies {
@@ -147,6 +161,8 @@ dependencies {
implementation(libs.restriction.bypass)
debugImplementation(libs.debug.db)
coreLibraryDesugaring(libs.tools.desugar)
+ implementation(libs.androidx.profileinstaller)
+ debugImplementation(libs.tools.leakcanary)
// Testing dependencies
testImplementation(libs.bundles.testing.unit)
diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c7a3ee54c9209c5c76a113b8d43e44204b970d00
--- /dev/null
+++ b/app/lint-baseline.xml
@@ -0,0 +1,2088 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 770fec5da1133b0f8d08ee767b628d353b2b9b7f..7b491ec950505a8f4d6d41f4a349c927b25d8f8d 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -53,6 +53,7 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
+