Switch from -Xopt-in to -opt-in
w: Argument -Xopt-in is deprecated. Please use -opt-in instead
w: C:\Users\aayus\StudioProjects\seedvault\storage\demo\src\main\java\de\grobox\storagebackuptester\restore\DemoSnapshotFragment.kt: (34, 31): 'onBackPressed(): Unit' is deprecated. Overrides deprecated member in 'androidx.core.app.ComponentActivity'. Deprecated in Java
w: Argument -Xopt-in is deprecated. Please use -opt-in instead
w: C:\Users\aayus\StudioProjects\seedvault\storage\lib\src\main\java\org\calyxos\backup\storage\backup\BackupService.kt: (35, 9): This is a delicate API and its use requires care. Make sure you fully read and understand documentation of the declaration that is marked as a delicate API.
w: C:\Users\aayus\StudioProjects\seedvault\storage\lib\src\main\java\org\calyxos\backup\storage\restore\RestoreService.kt: (49, 9): This is a delicate API and its use requires care. Make sure you fully read and understand documentation of the declaration that is marked as a delicate API.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
diff --git a/storage/demo/build.gradle b/storage/demo/build.gradle
index 4fcee90..ef3625b 100644
--- a/storage/demo/build.gradle
+++ b/storage/demo/build.gradle
@@ -37,7 +37,7 @@
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
- freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
+ freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
lintOptions {
disable "DialogFragmentCallbacksDetector",
diff --git a/storage/lib/Android.bp b/storage/lib/Android.bp
index aa1d675..227fecf 100644
--- a/storage/lib/Android.bp
+++ b/storage/lib/Android.bp
@@ -40,7 +40,7 @@
enabled: false,
},
kotlincflags: [
- "-Xopt-in=kotlin.RequiresOptIn",
+ "-opt-in=kotlin.RequiresOptIn",
],
}
diff --git a/storage/lib/build.gradle b/storage/lib/build.gradle
index 2e16e9f..2b8db4d 100644
--- a/storage/lib/build.gradle
+++ b/storage/lib/build.gradle
@@ -39,7 +39,7 @@
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
languageVersion = "1.7"
- freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
+ freeCompilerArgs += '-opt-in=kotlin.RequiresOptIn'
freeCompilerArgs += '-Xexplicit-api=strict'
}
protobuf {