Skip to content

Commit 0c51b35

Browse files
committed
fix(android): use 'propName = value' assignment syntax in build.gradle files
1 parent 70902b6 commit 0c51b35

File tree

19 files changed

+76
-76
lines changed

19 files changed

+76
-76
lines changed

action-sheet/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildscript {
1212
google()
1313
mavenCentral()
1414
maven {
15-
url "https://plugins.gradle.org/m2/"
15+
url = "https://plugins.gradle.org/m2/"
1616
}
1717
}
1818
dependencies {
@@ -31,8 +31,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3131
}
3232

3333
android {
34-
namespace "com.capacitorjs.plugins.actionsheet"
35-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
34+
namespace = "com.capacitorjs.plugins.actionsheet"
35+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3636
defaultConfig {
3737
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3838
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -47,7 +47,7 @@ android {
4747
}
4848
}
4949
lintOptions {
50-
abortOnError false
50+
abortOnError = false
5151
}
5252
compileOptions {
5353
sourceCompatibility JavaVersion.VERSION_21

app-launcher/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
google()
1212
mavenCentral()
1313
maven {
14-
url "https://plugins.gradle.org/m2/"
14+
url = "https://plugins.gradle.org/m2/"
1515
}
1616
}
1717
dependencies {
@@ -30,8 +30,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3030
}
3131

3232
android {
33-
namespace "com.capacitorjs.plugins.applauncher"
34-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
33+
namespace = "com.capacitorjs.plugins.applauncher"
34+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3535
defaultConfig {
3636
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3737
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -46,7 +46,7 @@ android {
4646
}
4747
}
4848
lintOptions {
49-
abortOnError false
49+
abortOnError = false
5050
}
5151
compileOptions {
5252
sourceCompatibility JavaVersion.VERSION_21

app/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
google()
1212
mavenCentral()
1313
maven {
14-
url "https://plugins.gradle.org/m2/"
14+
url = "https://plugins.gradle.org/m2/"
1515
}
1616
}
1717
dependencies {
@@ -30,8 +30,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3030
}
3131

3232
android {
33-
namespace "com.capacitorjs.plugins.app"
34-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
33+
namespace = "com.capacitorjs.plugins.app"
34+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3535
defaultConfig {
3636
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3737
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -46,7 +46,7 @@ android {
4646
}
4747
}
4848
lintOptions {
49-
abortOnError false
49+
abortOnError = false
5050
}
5151
compileOptions {
5252
sourceCompatibility JavaVersion.VERSION_21

browser/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildscript {
1212
google()
1313
mavenCentral()
1414
maven {
15-
url "https://plugins.gradle.org/m2/"
15+
url = "https://plugins.gradle.org/m2/"
1616
}
1717
}
1818
dependencies {
@@ -31,8 +31,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3131
}
3232

3333
android {
34-
namespace "com.capacitorjs.plugins.browser"
35-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
34+
namespace = "com.capacitorjs.plugins.browser"
35+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3636
defaultConfig {
3737
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3838
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -47,7 +47,7 @@ android {
4747
}
4848
}
4949
lintOptions {
50-
abortOnError false
50+
abortOnError = false
5151
}
5252
compileOptions {
5353
sourceCompatibility JavaVersion.VERSION_21

camera/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
google()
1414
mavenCentral()
1515
maven {
16-
url "https://plugins.gradle.org/m2/"
16+
url = "https://plugins.gradle.org/m2/"
1717
}
1818
}
1919
dependencies {
@@ -32,8 +32,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3232
}
3333

3434
android {
35-
namespace "com.capacitorjs.plugins.camera"
36-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
35+
namespace = "com.capacitorjs.plugins.camera"
36+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3737
defaultConfig {
3838
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3939
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -48,7 +48,7 @@ android {
4848
}
4949
}
5050
lintOptions {
51-
abortOnError false
51+
abortOnError = false
5252
}
5353
compileOptions {
5454
sourceCompatibility JavaVersion.VERSION_21

clipboard/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
google()
1212
mavenCentral()
1313
maven {
14-
url "https://plugins.gradle.org/m2/"
14+
url = "https://plugins.gradle.org/m2/"
1515
}
1616
}
1717
dependencies {
@@ -30,8 +30,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3030
}
3131

3232
android {
33-
namespace "com.capacitorjs.plugins.clipboard"
34-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
33+
namespace = "com.capacitorjs.plugins.clipboard"
34+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3535
defaultConfig {
3636
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3737
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -46,7 +46,7 @@ android {
4646
}
4747
}
4848
lintOptions {
49-
abortOnError false
49+
abortOnError = false
5050
}
5151
compileOptions {
5252
sourceCompatibility JavaVersion.VERSION_21

device/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
google()
1212
mavenCentral()
1313
maven {
14-
url "https://plugins.gradle.org/m2/"
14+
url = "https://plugins.gradle.org/m2/"
1515
}
1616
}
1717
dependencies {
@@ -30,8 +30,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3030
}
3131

3232
android {
33-
namespace "com.capacitorjs.plugins.device"
34-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
33+
namespace = "com.capacitorjs.plugins.device"
34+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3535
defaultConfig {
3636
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3737
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -46,7 +46,7 @@ android {
4646
}
4747
}
4848
lintOptions {
49-
abortOnError false
49+
abortOnError = false
5050
}
5151
compileOptions {
5252
sourceCompatibility JavaVersion.VERSION_21

dialog/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
google()
1212
mavenCentral()
1313
maven {
14-
url "https://plugins.gradle.org/m2/"
14+
url = "https://plugins.gradle.org/m2/"
1515
}
1616
}
1717
dependencies {
@@ -30,8 +30,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3030
}
3131

3232
android {
33-
namespace "com.capacitorjs.plugins.dialog"
34-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
33+
namespace = "com.capacitorjs.plugins.dialog"
34+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3535
defaultConfig {
3636
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3737
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -46,7 +46,7 @@ android {
4646
}
4747
}
4848
lintOptions {
49-
abortOnError false
49+
abortOnError = false
5050
}
5151
compileOptions {
5252
sourceCompatibility JavaVersion.VERSION_21

local-notifications/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
google()
1212
mavenCentral()
1313
maven {
14-
url "https://plugins.gradle.org/m2/"
14+
url = "https://plugins.gradle.org/m2/"
1515
}
1616
}
1717
dependencies {
@@ -30,8 +30,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3030
}
3131

3232
android {
33-
namespace "com.capacitorjs.plugins.localnotifications"
34-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
33+
namespace = "com.capacitorjs.plugins.localnotifications"
34+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3535
defaultConfig {
3636
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3737
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -46,7 +46,7 @@ android {
4646
}
4747
}
4848
lintOptions {
49-
abortOnError false
49+
abortOnError = false
5050
}
5151
compileOptions {
5252
sourceCompatibility JavaVersion.VERSION_21

network/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
google()
1212
mavenCentral()
1313
maven {
14-
url "https://plugins.gradle.org/m2/"
14+
url = "https://plugins.gradle.org/m2/"
1515
}
1616
}
1717
dependencies {
@@ -30,8 +30,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
3030
}
3131

3232
android {
33-
namespace "com.capacitorjs.plugins.network"
34-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
33+
namespace = "com.capacitorjs.plugins.network"
34+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
3535
defaultConfig {
3636
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
3737
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -46,7 +46,7 @@ android {
4646
}
4747
}
4848
lintOptions {
49-
abortOnError false
49+
abortOnError = false
5050
}
5151
compileOptions {
5252
sourceCompatibility JavaVersion.VERSION_21

0 commit comments

Comments
 (0)