Skip to content

Commit dc9a4c1

Browse files
authored
chore(android): use 'propName = value' assignment syntax in build.gradle files (#99)
1 parent 476b667 commit dc9a4c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

example-app/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
namespace "io.ionic.starter"
5-
compileSdk rootProject.ext.compileSdkVersion
4+
namespace = "io.ionic.starter"
5+
compileSdk = rootProject.ext.compileSdkVersion
66
defaultConfig {
77
applicationId "io.ionic.starter"
88
minSdkVersion rootProject.ext.minSdkVersion
@@ -13,7 +13,7 @@ android {
1313
aaptOptions {
1414
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
1515
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
16-
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
16+
ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
1717
}
1818
}
1919
buildTypes {

plugin/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ apply plugin: 'com.android.library'
2424
apply plugin: 'kotlin-android'
2525

2626
android {
27-
namespace "com.capacitorjs.barcodescanner"
28-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
27+
namespace = "com.capacitorjs.barcodescanner"
28+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
2929
defaultConfig {
3030
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
3131
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
@@ -40,7 +40,7 @@ android {
4040
}
4141
}
4242
lintOptions {
43-
abortOnError false
43+
abortOnError = false
4444
}
4545
compileOptions {
4646
sourceCompatibility JavaVersion.VERSION_21

0 commit comments

Comments
 (0)