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>
This commit is contained in:
parent
efee38ae39
commit
d5320918dc
3 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ android {
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
||||||
}
|
}
|
||||||
lintOptions {
|
lintOptions {
|
||||||
disable "DialogFragmentCallbacksDetector",
|
disable "DialogFragmentCallbacksDetector",
|
||||||
|
|
|
@ -40,7 +40,7 @@ android_library {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
kotlincflags: [
|
kotlincflags: [
|
||||||
"-Xopt-in=kotlin.RequiresOptIn",
|
"-opt-in=kotlin.RequiresOptIn",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ android {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
languageVersion = "1.7"
|
languageVersion = "1.7"
|
||||||
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
|
freeCompilerArgs += '-opt-in=kotlin.RequiresOptIn'
|
||||||
freeCompilerArgs += '-Xexplicit-api=strict'
|
freeCompilerArgs += '-Xexplicit-api=strict'
|
||||||
}
|
}
|
||||||
protobuf {
|
protobuf {
|
||||||
|
|
Loading…
Reference in a new issue