Skip to content

Commit 5dcd9c3

Browse files
committed
fix(android): use 'propName = value' assignment syntax in build.gradle files
1 parent 44999b7 commit 5dcd9c3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/capacitor-plugin/android/build.gradle

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

2323
android {
24-
namespace "com.capacitorjs.plugins.filesystem"
25-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
24+
namespace = "com.capacitorjs.plugins.filesystem"
25+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
2626
defaultConfig {
2727
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
2828
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -37,7 +37,7 @@ android {
3737
}
3838
}
3939
lintOptions {
40-
abortOnError false
40+
abortOnError = false
4141
}
4242
compileOptions {
4343
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)