π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: bump gradlew files
Prateek Sunalab93eb4e8e32
diff --git a/auth/android/app/build.gradle b/auth/android/app/build.gradleindex 5621b08b6f..a0179af5b4 100644--- a/auth/android/app/build.gradle+++ b/auth/android/app/build.gradle@@ -1,3 +1,9 @@+plugins {+ id "com.android.application"+ id "kotlin-android"+ id "dev.flutter.flutter-gradle-plugin"+}+def localProperties = new Properties()def localPropertiesFile = rootProject.file('local.properties')if (localPropertiesFile.exists()) {@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {}}-def flutterRoot = localProperties.getProperty('flutter.sdk')-if (flutterRoot == null) {- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")-}-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')if (flutterVersionCode == null) {flutterVersionCode = '1'@@ -21,10 +22,6 @@ if (flutterVersionName == null) {flutterVersionName = '1.0'}-apply plugin: 'com.android.application'-apply plugin: 'kotlin-android'-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"-def keystoreProperties = new Properties()def keystorePropertiesFile = rootProject.file('key.properties')if (keystorePropertiesFile.exists()) {@@ -32,7 +29,18 @@ if (keystorePropertiesFile.exists()) {}android {- compileSdkVersion 34+ namespace "io.ente.auth"+ compileSdk 34+ ndkVersion flutter.ndkVersion++ compileOptions {+ sourceCompatibility JavaVersion.VERSION_1_8+ targetCompatibility JavaVersion.VERSION_1_8+ }++ kotlinOptions {+ jvmTarget = '1.8'+ }sourceSets {main.java.srcDirs += 'src/main/kotlin'@@ -46,6 +54,8 @@ android {defaultConfig {applicationId "io.ente.auth"+ // You can update the following values to match your application needs.+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.minSdkVersion 21targetSdkVersion 33versionCode flutterVersionCode.toInteger()@@ -105,13 +115,4 @@ flutter {source '../..'}-dependencies {- implementation 'io.sentry:sentry-android:2.0.0'- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"- implementation 'com.android.support:multidex:1.0.3'- implementation 'com.google.guava:guava:28.2-android'- implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'- testImplementation 'junit:junit:4.12'- androidTestImplementation 'androidx.test:runner:1.1.1'- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'-}+dependencies {}diff --git a/auth/android/app/src/debug/AndroidManifest.xml b/auth/android/app/src/debug/AndroidManifest.xmlindex 68e4e89c47..399f6981d5 100644--- a/auth/android/app/src/debug/AndroidManifest.xml+++ b/auth/android/app/src/debug/AndroidManifest.xml@@ -1,6 +1,6 @@-<manifest xmlns:android="http://schemas.android.com/apk/res/android"- package="io.ente.auth">- <!-- Flutter needs it to communicate with the running application+<manifest xmlns:android="http://schemas.android.com/apk/res/android">+ <!-- The INTERNET permission is required for development. Specifically,+ the Flutter tool needs it to communicate with the running applicationto allow setting breakpoints, to provide hot reload, etc.--><uses-permission android:name="android.permission.INTERNET"/>diff --git a/auth/android/app/src/main/AndroidManifest.xml b/auth/android/app/src/main/AndroidManifest.xmlindex abe72b5650..5c5afac745 100644--- a/auth/android/app/src/main/AndroidManifest.xml+++ b/auth/android/app/src/main/AndroidManifest.xml@@ -1,71 +1,62 @@-<manifest xmlns:android="http://schemas.android.com/apk/res/android"- xmlns:tools="http://schemas.android.com/tools"- package="io.ente.auth">- <application android:name="${applicationName}"- android:label="auth"- android:icon="@mipmap/launcher_icon"- android:usesCleartextTraffic="true"- android:requestLegacyExternalStorage="true"- android:allowBackup="false"- android:fullBackupContent="false"- android:largeHeap="true">-- <activity android:name=".MainActivity" android:launchMode="singleTop"- android:theme="@style/LaunchTheme"- android:exported="true"- android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"- android:hardwareAccelerated="true"- android:windowSoftInputMode="adjustResize">+<manifest xmlns:android="http://schemas.android.com/apk/res/android">+ <application+ android:label="auth"+ android:name="${applicationName}"+ android:icon="@mipmap/ic_launcher">+ <activity+ android:name=".MainActivity"+ android:exported="true"+ android:launchMode="singleTop"+ android:theme="@style/LaunchTheme"+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"+ android:hardwareAccelerated="true"+ android:windowSoftInputMode="adjustResize">+ <!-- Specifies an Android theme to apply to this Activity as soon as+ the Android process has started. This theme is visible to the user+ while the Flutter UI initializes. After that, this theme continues+ to determine the Window background behind the Flutter UI. -->+ <meta-data+ android:name="io.flutter.embedding.android.NormalTheme"+ android:resource="@style/NormalTheme"+ /><intent-filter>- <action android:name="android.intent.action.MAIN"/>- <category android:name="android.intent.category.LAUNCHER"/>+ <action android:name="android.intent.action.MAIN" />+ <category android:name="android.intent.category.LAUNCHER" /></intent-filter>-<intent-filter>- <action android:name="android.intent.action.VIEW"/>- <category android:name="android.intent.category.DEFAULT"/>- <category android:name="android.intent.category.BROWSABLE"/>- <data android:scheme="ente-auth"/>+ <action android:name="android.intent.action.VIEW" />+ <category android:name="android.intent.category.DEFAULT" />+ <category android:name="android.intent.category.BROWSABLE" />+ <data android:scheme="ente-auth" /></intent-filter>-<intent-filter><action android:name="android.intent.action.VIEW" /><category android:name="android.intent.category.DEFAULT" /><category android:name="android.intent.category.BROWSABLE" /><data android:scheme="otpauth" /></intent-filter>-<intent-filter><action android:name="android.intent.action.VIEW" /><category android:name="android.intent.category.DEFAULT" /><category android:name="android.intent.category.BROWSABLE" /><data android:scheme="enteauth" /></intent-filter>-</activity>-<!-- Don't delete the meta-data below.This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->- <meta-data android:name="flutterEmbedding" android:value="2"/>-- <meta-data android:name="io.sentry.dsn"- android:value="https://[email protected]/9"/>+ <meta-data+ android:name="flutterEmbedding"+ android:value="2" /></application>+ <!-- Required to query activities that can process text, see:+ https://developer.android.com/training/package-visibility?hl=en and+ https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.+ In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --><queries><intent>- <action android:name="android.intent.action.SENDTO"/>- <data android:scheme="mailto"/>+ <action android:name="android.intent.action.PROCESS_TEXT" />+ <data android:mimeType="text/plain" /></intent></queries>- <uses-permission android:name="android.permission.INTERNET"/>- <uses-permission- android:name="android.permission.READ_EXTERNAL_STORAGE"- android:maxSdkVersion="32"/>- <uses-permission- android:name="android.permission.WRITE_EXTERNAL_STORAGE"- android:maxSdkVersion="29"- tools:ignore="ScopedStorage"/>- <uses-permission android:name="android.permission.USE_BIOMETRIC"/>--</manifest>+</manifest>\ No newline at end of filediff --git a/auth/android/app/src/profile/AndroidManifest.xml b/auth/android/app/src/profile/AndroidManifest.xmlindex 68e4e89c47..399f6981d5 100644--- a/auth/android/app/src/profile/AndroidManifest.xml+++ b/auth/android/app/src/profile/AndroidManifest.xml@@ -1,6 +1,6 @@-<manifest xmlns:android="http://schemas.android.com/apk/res/android"- package="io.ente.auth">- <!-- Flutter needs it to communicate with the running application+<manifest xmlns:android="http://schemas.android.com/apk/res/android">+ <!-- The INTERNET permission is required for development. Specifically,+ the Flutter tool needs it to communicate with the running applicationto allow setting breakpoints, to provide hot reload, etc.--><uses-permission android:name="android.permission.INTERNET"/>diff --git a/auth/android/build.gradle b/auth/android/build.gradleindex 47890036d0..bc157bd1a1 100644--- a/auth/android/build.gradle+++ b/auth/android/build.gradle@@ -1,16 +1,3 @@-buildscript {- ext.kotlin_version = '1.8.22'- repositories {- google()- mavenCentral()- }-- dependencies {- classpath 'com.android.tools.build:gradle:7.1.2'- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"- }-}-allprojects {repositories {google()@@ -21,6 +8,8 @@ allprojects {rootProject.buildDir = '../build'subprojects {project.buildDir = "${rootProject.buildDir}/${project.name}"+}+subprojects {project.evaluationDependsOn(':app')}diff --git a/auth/android/gradle.properties b/auth/android/gradle.propertiesindex 94adc3a3f9..598d13fee4 100644--- a/auth/android/gradle.properties+++ b/auth/android/gradle.properties@@ -1,3 +1,3 @@-org.gradle.jvmargs=-Xmx1536M+org.gradle.jvmargs=-Xmx4Gandroid.useAndroidX=trueandroid.enableJetifier=truediff --git a/auth/android/gradle/wrapper/gradle-wrapper.properties b/auth/android/gradle/wrapper/gradle-wrapper.propertiesindex cc5527d781..e1ca574ef0 100644--- a/auth/android/gradle/wrapper/gradle-wrapper.properties+++ b/auth/android/gradle/wrapper/gradle-wrapper.properties@@ -1,6 +1,5 @@-#Fri Jun 23 08:50:38 CEST 2017distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distszipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/dists-distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zipdiff --git a/auth/android/settings.gradle b/auth/android/settings.gradleindex 44e62bcf06..748caceba7 100644--- a/auth/android/settings.gradle+++ b/auth/android/settings.gradle@@ -1,11 +1,26 @@-include ':app'+pluginManagement {+ def flutterSdkPath = {+ def properties = new Properties()+ file("local.properties").withInputStream { properties.load(it) }+ def flutterSdkPath = properties.getProperty("flutter.sdk")+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"+ return flutterSdkPath+ }+ settings.ext.flutterSdkPath = flutterSdkPath()-def localPropertiesFile = new File(rootProject.projectDir, "local.properties")-def properties = new Properties()+ includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")-assert localPropertiesFile.exists()-localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }+ repositories {+ google()+ mavenCentral()+ gradlePluginPortal()+ }+}-def flutterSdkPath = properties.getProperty("flutter.sdk")-assert flutterSdkPath != null, "flutter.sdk not set in local.properties"-apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"+plugins {+ id "dev.flutter.flutter-plugin-loader" version "1.0.0"+ id "com.android.application" version "7.3.0" apply false+ id "org.jetbrains.kotlin.android" version "1.8.22" apply false+}++include ":app"