File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
build/project-template-gradle Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 14
14
* -PbuildToolsVersion=[build_tools_version] (default is 22.0.1)
15
15
* -PsupportVersion=[support_version] (default (22.2.0)
16
16
* -PcompileSdk=[compile_sdk_version] (default 22)
17
+ *
18
+ * -PdontRunSbg=[true/false] (default false)
17
19
*/
18
20
19
21
buildscript {
@@ -39,6 +41,8 @@ def libDir = "$projectDir/../../lib/Android/"
39
41
def pluginNames = new ArrayList<String > ()
40
42
def configDir = file(configurationsDir)
41
43
44
+ def dontRunSbg = project. hasProperty(" dontRunSbg" );
45
+
42
46
def asbgProject = project(" :asbg" )
43
47
asbgProject. ext. outDir = new File (" $projectDir " , " src/main/java" )
44
48
asbgProject. ext. jsCodeDir = new File (" $projectDir " , " src/main/assets/app" )
@@ -139,7 +143,10 @@ android {
139
143
140
144
def generateBuildConfigTask = variant. generateBuildConfig;
141
145
generateBuildConfigTask. finalizedBy(collectAllJars)
142
- collectAllJars. finalizedBy(setProperties)
146
+
147
+ if (! dontRunSbg) {
148
+ collectAllJars. finalizedBy(setProperties)
149
+ }
143
150
144
151
compileSourcesTask. finalizedBy(buildMetadata)
145
152
}
You can’t perform that action at this time.
0 commit comments