Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: build it finally

Prateek Sunal65614adc1ac5
diff --git a/mobile/android/app/proguard-rules.pro b/mobile/android/app/proguard-rules.pro
index f131957d9b..066c0d1874 100644
--- a/mobile/android/app/proguard-rules.pro
+++ b/mobile/android/app/proguard-rules.pro
@@ -4,36 +4,3 @@
-keepattributes LineNumberTable,SourceFile
-keep class org.chromium.net.** { *; }
-
-# App was failing without these
-# Please add these rules to your existing keep rules in order to suppress warnings.
-# This is generated automatically by the Android Gradle plugin.
--dontwarn androidx.window.extensions.WindowExtensions
--dontwarn androidx.window.extensions.WindowExtensionsProvider
--dontwarn androidx.window.extensions.area.ExtensionWindowAreaPresentation
--dontwarn androidx.window.extensions.layout.DisplayFeature
--dontwarn androidx.window.extensions.layout.FoldingFeature
--dontwarn androidx.window.extensions.layout.WindowLayoutComponent
--dontwarn androidx.window.extensions.layout.WindowLayoutInfo
--dontwarn androidx.window.sidecar.SidecarDeviceState
--dontwarn androidx.window.sidecar.SidecarDisplayFeature
--dontwarn androidx.window.sidecar.SidecarInterface$SidecarCallback
--dontwarn androidx.window.sidecar.SidecarInterface
--dontwarn androidx.window.sidecar.SidecarProvider
--dontwarn androidx.window.sidecar.SidecarWindowLayoutInfo
--dontwarn androidx.compose.ui.Modifier
--dontwarn androidx.compose.ui.layout.LayoutCoordinates
--dontwarn androidx.compose.ui.layout.LayoutCoordinatesKt
--dontwarn androidx.compose.ui.layout.ModifierInfo
--dontwarn androidx.compose.ui.node.LayoutNode
--dontwarn androidx.compose.ui.node.NodeCoordinator
--dontwarn androidx.compose.ui.node.Owner
--dontwarn androidx.compose.ui.semantics.AccessibilityAction
--dontwarn androidx.compose.ui.semantics.SemanticsActions
--dontwarn androidx.compose.ui.semantics.SemanticsConfiguration
--dontwarn androidx.compose.ui.semantics.SemanticsConfigurationKt
--dontwarn androidx.compose.ui.semantics.SemanticsProperties
--dontwarn androidx.compose.ui.semantics.SemanticsPropertyKey
--dontwarn androidx.compose.ui.text.TextLayoutInput
--dontwarn androidx.compose.ui.text.TextLayoutResult
--dontwarn androidx.compose.ui.text.TextStyle
\ No newline at end of file
diff --git a/mobile/android/build.gradle b/mobile/android/build.gradle
index 1a2fc3752d..22fba3524f 100644
--- a/mobile/android/build.gradle
+++ b/mobile/android/build.gradle
@@ -12,17 +12,25 @@ allprojects {
url "${project(':background_fetch').projectDir}/libs"
}
}
- ext {
- compileSdkVersion = 35
- targetSdkVersion = 35
- appCompatVersion = "1.7.0"
- }
}
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ afterEvaluate { project ->
+ if (project.plugins.hasPlugin("com.android.application") ||
+ project.plugins.hasPlugin("com.android.library")) {
+ project.android {
+ compileSdkVersion 35
+ buildToolsVersion "35.0.0"
+ }
+ }
+ }
+}
+subprojects {
project.evaluationDependsOn(":app")
}