File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class GradleBuildArgsService implements IGradleBuildArgsService {
5757
5858 args . push (
5959 `--stacktrace` ,
60- `-PcompileSdk=android- ${ toolsInfo . compileSdkVersion } ` ,
60+ `-PcompileSdk=${ toolsInfo . compileSdkVersion } ` ,
6161 `-PtargetSdk=${ toolsInfo . targetSdkVersion } ` ,
6262 `-PbuildToolsVersion=${ toolsInfo . buildToolsVersion } ` ,
6363 `-PgenerateTypings=${ toolsInfo . generateTypings } ` ,
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const expectedInfoLoggingArgs = ["--quiet"];
6363const expectedTraceLoggingArgs = [ "--debug" ] ;
6464const expectedDebugBuildArgs = [
6565 "--stacktrace" ,
66- "-PcompileSdk=android- 28" ,
66+ "-PcompileSdk=28" ,
6767 "-PtargetSdk=26" ,
6868 "-PbuildToolsVersion=my-build-tools-version" ,
6969 "-PgenerateTypings=true" ,
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ def pluginsJarLibraries = new LinkedList<String>()
8686def allJarLibraries = new LinkedList<String > ()
8787
8888def computeKotlinVersion = { -> project. hasProperty(" kotlinVersion" ) ? kotlinVersion : " ${ ns_default_kotlin_version} " }
89- def computeCompileSdkVersion = { -> project. hasProperty(" compileSdk" ) ? compileSdk : NS_DEFAULT_COMPILE_SDK_VERSION as int }
90- def computeTargetSdkVersion = { -> project. hasProperty(" targetSdk" ) ? targetSdk : NS_DEFAULT_COMPILE_SDK_VERSION as int }
89+ def computeCompileSdkVersion = { -> project. hasProperty(" compileSdk" ) ? compileSdk as int : NS_DEFAULT_COMPILE_SDK_VERSION as int }
90+ def computeTargetSdkVersion = { -> project. hasProperty(" targetSdk" ) ? targetSdk as int : NS_DEFAULT_COMPILE_SDK_VERSION as int }
9191def computeBuildToolsVersion = { ->
9292 project. hasProperty(" buildToolsVersion" ) ? buildToolsVersion : NS_DEFAULT_BUILD_TOOLS_VERSION as String
9393}
You can’t perform that action at this time.
0 commit comments