File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ def SBG_BINDINGS_NAME = "sbg-bindings.txt"
7474def SBG_INTERFACE_NAMES = " sbg-interface-names.txt"
7575def INPUT_JS_DIR = " $projectDir /src/main/assets/app"
7676def OUTPUT_JAVA_DIR = " $projectDir /src/main/java"
77- def APP_DIR = " $projectDir /src/main/assets/app"
7877
7978// metadata generator
8079def MDG_OUTPUT_DIR = " mdg-output-dir.txt"
@@ -94,7 +93,6 @@ def computeBuildToolsVersion = { ->
9493}
9594
9695def enableVerboseMDG = project. gradle. startParameter. logLevel. name() == ' DEBUG'
97- def analyticsFilePath = " $rootDir /analytics/build-statistics.json"
9896
9997project. ext. selectedBuildType = project. hasProperty(" release" ) ? " release" : " debug"
10098
@@ -184,32 +182,7 @@ def setAppIdentifier = { ->
184182 }
185183}
186184
187- def computeNamespace = { ->
188- def appPackageJsonFile = file(" ${ APP_DIR} /$PACKAGE_JSON " )
189-
190- if (appPackageJsonFile. exists()) {
191- def content = appPackageJsonFile. getText(" UTF-8" )
192-
193- def jsonSlurper = new JsonSlurper ()
194- def packageJsonMap = jsonSlurper. parseText(content)
195-
196- def appIdentifier = " "
197-
198- if (packageJsonMap && packageJsonMap. id) {
199- appIdentifier = packageJsonMap. id
200- }
201-
202-
203- if (appIdentifier) {
204- return appIdentifier
205- }
206- }
207- return " com.tns.testapplication"
208- }
209-
210185android {
211- namespace computeNamespace()
212-
213186 applyBeforePluginGradleConfiguration()
214187 namespace " __PACKAGE__"
215188
You can’t perform that action at this time.
0 commit comments