File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -270,13 +270,16 @@ export class AndroidPluginBuildService implements IAndroidPluginBuildService {
270
270
271
271
// finally build the plugin
272
272
const gradlew = this . $hostInfo . isWindows ? "gradlew.bat" : "./gradlew" ;
273
- const localArgs = [
273
+ let localArgs = [
274
274
gradlew ,
275
275
"-p" ,
276
276
newPluginDir ,
277
277
"assembleRelease"
278
278
] ;
279
279
280
+ const projectBuildOptions = options . platformData . platformProjectService . getBuildOptions ( ) ;
281
+ localArgs = localArgs . concat ( projectBuildOptions ) ;
282
+
280
283
try {
281
284
await this . $childProcess . exec ( localArgs . join ( " " ) , { cwd : newPluginDir } ) ;
282
285
} catch ( err ) {
Original file line number Diff line number Diff line change @@ -19,13 +19,19 @@ allprojects {
19
19
20
20
apply plugin : ' com.android.library'
21
21
22
+ def computeCompileSdkVersion = { -> project. hasProperty(" compileSdk" ) ? compileSdk : 24 }
23
+ def computeTargetSdkVersion = { -> project. hasProperty(" targetSdk" ) ? targetSdk : 24 }
24
+ def computeBuildToolsVersion = { ->
25
+ project. hasProperty(" buildToolsVersion" ) ? buildToolsVersion : " 27.0.1"
26
+ }
27
+
22
28
android {
23
- compileSdkVersion 26
24
- buildToolsVersion " 26.0.2 "
29
+ compileSdkVersion computeCompileSdkVersion()
30
+ buildToolsVersion computeBuildToolsVersion()
25
31
26
32
defaultConfig {
27
33
minSdkVersion 17
28
- targetSdkVersion 26
34
+ targetSdkVersion computeTargetSdkVersion()
29
35
versionCode 1
30
36
versionName " 1.0"
31
37
}
You can’t perform that action at this time.
0 commit comments