Skip to content

Commit 9671015

Browse files
authored
Merge pull request #59 from ionic-team/fix/gradle-property-assignment
chore(android): use 'propName = value' assignment syntax in build.gradle files
2 parents c99762e + 08f311a commit 9671015

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/capacitor-plugin/android/build.gradle

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

2424
android {
25-
namespace "com.capacitorjs.plugins.geolocation"
26-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
25+
namespace = "com.capacitorjs.plugins.geolocation"
26+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
2727
defaultConfig {
2828
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
2929
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -38,7 +38,7 @@ android {
3838
}
3939
}
4040
lintOptions {
41-
abortOnError false
41+
abortOnError = false
4242
}
4343
compileOptions {
4444
sourceCompatibility JavaVersion.VERSION_21

packages/example-app-capacitor/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 "com.capacitorjs.exampleucapp.plugins.geolocation"
5-
compileSdk rootProject.ext.compileSdkVersion
4+
namespace = "com.capacitorjs.exampleucapp.plugins.geolocation"
5+
compileSdk = rootProject.ext.compileSdkVersion
66
defaultConfig {
77
applicationId "com.capacitorjs.exampleucapp.plugins.geolocation"
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 {

0 commit comments

Comments
 (0)