mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-20 07:10:15 +01:00
Update some gradle properties that are giving warnings.
This commit is contained in:
committed by
Michelle Tang
parent
b2a18f7202
commit
dca4351b8b
@@ -686,6 +686,7 @@ dependencies {
|
||||
implementation(libs.google.play.services.maps)
|
||||
implementation(libs.google.play.services.auth)
|
||||
implementation(libs.google.signin)
|
||||
implementation(libs.androidx.media)
|
||||
implementation(libs.bundles.media3)
|
||||
implementation(libs.conscrypt.android)
|
||||
implementation(libs.signal.aesgcmprovider)
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-sdk tools:overrideLibrary="androidx.camera.core,androidx.camera.camera2,androidx.camera.lifecycle,androidx.camera.view" />
|
||||
|
||||
<!-- ======================================= -->
|
||||
<!-- Features -->
|
||||
<!-- ======================================= -->
|
||||
|
||||
@@ -24,6 +24,10 @@ android {
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
}
|
||||
|
||||
testOptions {
|
||||
targetSdk = libs.versions.targetSdk.get().toInt()
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.toVersion(libs.versions.javaVersion.get())
|
||||
@@ -31,6 +35,7 @@ android {
|
||||
}
|
||||
|
||||
lint {
|
||||
targetSdk = libs.versions.targetSdk.get().toInt()
|
||||
disable += "InvalidVectorPath"
|
||||
lintConfig = rootProject.file("lint.xml")
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.apng"
|
||||
namespace = "org.signal.apng.demo"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "org.signal.apng"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.Signal">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:name="org.signal.apng.MainActivity"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.Signal">
|
||||
@@ -26,12 +26,12 @@
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".DemoActivity"
|
||||
android:name="org.signal.apng.DemoActivity"
|
||||
android:exported="false"
|
||||
android:theme="@style/Theme.Signal" />
|
||||
|
||||
<activity
|
||||
android:name=".PlayerActivity"
|
||||
android:name="org.signal.apng.PlayerActivity"
|
||||
android:exported="false"
|
||||
android:theme="@style/Theme.Signal" />
|
||||
</application>
|
||||
|
||||
@@ -17,6 +17,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.ListAdapter
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import androidx.recyclerview.widget.RecyclerView.ViewHolder
|
||||
import org.signal.apng.demo.R
|
||||
|
||||
class DemoActivity : ComponentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
|
||||
@@ -9,6 +9,7 @@ import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.widget.Button
|
||||
import androidx.activity.ComponentActivity
|
||||
import org.signal.apng.demo.R
|
||||
|
||||
class MainActivity : ComponentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
|
||||
@@ -11,6 +11,7 @@ import android.widget.Button
|
||||
import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import androidx.activity.ComponentActivity
|
||||
import org.signal.apng.demo.R
|
||||
|
||||
class PlayerActivity : ComponentActivity() {
|
||||
lateinit var frameMetadata: TextView
|
||||
|
||||
+3
-14
@@ -1,11 +1,9 @@
|
||||
# R8 thread count set to 1 to avoid non-determinstic behavior
|
||||
org.gradle.jvmargs=-Xmx12g -Xms256m -XX:MaxMetaspaceSize=1g -Dcom.android.tools.r8.threadCount=1
|
||||
android.useAndroidX=true
|
||||
android.experimental.androidTest.numManagedDeviceShards=1
|
||||
org.gradle.configuration-cache=true
|
||||
org.gradle.configuration-cache.problems=fail
|
||||
android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false
|
||||
android.lint.useK2Uast=true
|
||||
|
||||
# We never want to use auto-provisioning, as it breaks reproducible builds.
|
||||
# This should not be a problem, because we never configure a "javaRepositories"
|
||||
@@ -14,19 +12,10 @@ android.lint.useK2Uast=true
|
||||
# See: https://docs.gradle.org/current/userguide/toolchains.html#sub:disable_auto_provision
|
||||
org.gradle.java.installations.auto-download=false
|
||||
|
||||
# Test fixtures support for Android modules
|
||||
# Required: Kotlin source files exist under src/testFixtures (e.g. core/ui).
|
||||
android.experimental.enableTestFixturesKotlinSupport=true
|
||||
android.defaults.buildfeatures.resvalues=true
|
||||
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
|
||||
android.enableAppCompileTimeRClass=false
|
||||
android.onlyEnableUnitTestForTheTestedBuildType=false
|
||||
android.usesSdkInManifest.disallowed=false
|
||||
android.uniquePackageNames=false
|
||||
android.dependency.useConstraints=true
|
||||
android.r8.strictFullModeForKeepRules=false
|
||||
android.r8.optimizedResourceShrinking=false
|
||||
android.builtInKotlin=true
|
||||
android.newDsl=true
|
||||
# Required: app/build.gradle.kts uses kotlinExt.sourceSets.create(...) to wire Kotlin
|
||||
# source sets for Wire 5.x, which AGP 9.0's built-in Kotlin doesn't create automatically.
|
||||
android.disallowKotlinSourceSets=false
|
||||
|
||||
# Uncomment these to build libsignal from source.
|
||||
|
||||
@@ -103,6 +103,7 @@ androidx-legacy-preference = "androidx.legacy:legacy-preference-v14:1.0.0"
|
||||
androidx-preference = "androidx.preference:preference:1.2.1"
|
||||
androidx-gridlayout = "androidx.gridlayout:gridlayout:1.1.0"
|
||||
androidx-exifinterface = "androidx.exifinterface:exifinterface:1.4.2"
|
||||
androidx-media = "androidx.media:media:1.7.0"
|
||||
androidx-media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "androidx-media3" }
|
||||
androidx-media3-session = { module = "androidx.media3:media3-session", version.ref = "androidx-media3" }
|
||||
androidx-media3-ui = { module = "androidx.media3:media3-ui", version.ref = "androidx-media3" }
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-sdk tools:overrideLibrary="androidx.camera.core,androidx.camera.camera2,androidx.camera.lifecycle,androidx.camera.view" />
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera"
|
||||
|
||||
Reference in New Issue
Block a user