Guest User

Untitled

a guest
Nov 6th, 2017
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.67 KB | None | 0 0
  1. A problem occurred configuring root project 'android'.
  2. Cannot add task ':processArmv7DebugGoogleServices' as a task with that name already exists.
  3.  
  4. cli packages: (C:UsersABCAppDataRoamingnpmnode_modules)
  5.  
  6. @ionic/cli-utils : 1.16.0
  7. ionic (Ionic CLI) : 3.16.0
  8.  
  9. global packages:
  10.  
  11. cordova (Cordova CLI) : 7.1.0
  12.  
  13. local packages:
  14.  
  15. @ionic/app-scripts : 3.0.1
  16. Cordova Platforms : android 6.3.0 browser 4.1.0
  17. Ionic Framework : ionic-angular 3.8.0
  18.  
  19. System:
  20.  
  21. Android SDK Tools : 26.0.2
  22. Node : v6.11.4
  23. npm : 3.10.10
  24. OS : Windows 7
  25.  
  26. Environment Variables:
  27.  
  28. ANDROID_HOME : C:UsersABCAppDataLocalAndroidandroid-sdk
  29.  
  30. Misc:
  31.  
  32. backend : pro
  33.  
  34. apply plugin: 'com.android.application'
  35.  
  36. buildscript {
  37. repositories {
  38. mavenCentral()
  39. jcenter()
  40. }
  41.  
  42. // Switch the Android Gradle plugin version requirement depending on the
  43. // installed version of Gradle. This dependency is documented at
  44. // http://tools.android.com/tech-docs/new-build-system/version-compatibility
  45. // and https://issues.apache.org/jira/browse/CB-8143
  46. dependencies {
  47. classpath 'com.android.tools.build:gradle:2.2.3'
  48. classpath 'com.google.gms:google-services:3.0.0'
  49. }
  50. }
  51.  
  52. // Allow plugins to declare Maven dependencies via build-extras.gradle.
  53. allprojects {
  54. repositories {
  55. jcenter()
  56. maven {
  57. url "https://maven.google.com"
  58. }
  59. }
  60. }
  61.  
  62. task wrapper(type: Wrapper) {
  63. gradleVersion = '2.14.1'
  64. }
  65.  
  66. // Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
  67. // Refer to: http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
  68. ext {
  69. apply from: 'CordovaLib/cordova.gradle'
  70. // The value for android.compileSdkVersion.
  71. if (!project.hasProperty('cdvCompileSdkVersion')) {
  72. cdvCompileSdkVersion = null;
  73. }
  74. // The value for android.buildToolsVersion.
  75. if (!project.hasProperty('cdvBuildToolsVersion')) {
  76. cdvBuildToolsVersion = null;
  77. }
  78. // Sets the versionCode to the given value.
  79. if (!project.hasProperty('cdvVersionCode')) {
  80. cdvVersionCode = null
  81. }
  82. // Sets the minSdkVersion to the given value.
  83. if (!project.hasProperty('cdvMinSdkVersion')) {
  84. cdvMinSdkVersion = null
  85. }
  86. // Whether to build architecture-specific APKs.
  87. if (!project.hasProperty('cdvBuildMultipleApks')) {
  88. cdvBuildMultipleApks = null
  89. }
  90. // .properties files to use for release signing.
  91. if (!project.hasProperty('cdvReleaseSigningPropertiesFile')) {
  92. cdvReleaseSigningPropertiesFile = null
  93. }
  94. // .properties files to use for debug signing.
  95. if (!project.hasProperty('cdvDebugSigningPropertiesFile')) {
  96. cdvDebugSigningPropertiesFile = null
  97. }
  98. // Set by build.js script.
  99. if (!project.hasProperty('cdvBuildArch')) {
  100. cdvBuildArch = null
  101. }
  102.  
  103. // Plugin gradle extensions can append to this to have code run at the end.
  104. cdvPluginPostBuildExtras = []
  105. }
  106.  
  107. // PLUGIN GRADLE EXTENSIONS START
  108. apply from: "cordova-plugin-crosswalk-webview/salestorm-xwalk.gradle"
  109. apply from: "cordova-plugin-fcm/salestorm-FCMPlugin.gradle"
  110. apply from: "phonegap-plugin-push/salestorm-push.gradle"
  111. // PLUGIN GRADLE EXTENSIONS END
  112.  
  113. def hasBuildExtras = file('build-extras.gradle').exists()
  114. if (hasBuildExtras) {
  115. apply from: 'build-extras.gradle'
  116. }
  117.  
  118. // Set property defaults after extension .gradle files.
  119. if (ext.cdvCompileSdkVersion == null) {
  120. ext.cdvCompileSdkVersion = privateHelpers.getProjectTarget()
  121. }
  122. if (ext.cdvBuildToolsVersion == null) {
  123. ext.cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()
  124. }
  125. if (ext.cdvDebugSigningPropertiesFile == null && file('debug-signing.properties').exists()) {
  126. ext.cdvDebugSigningPropertiesFile = 'debug-signing.properties'
  127. }
  128. if (ext.cdvReleaseSigningPropertiesFile == null && file('release-signing.properties').exists()) {
  129. ext.cdvReleaseSigningPropertiesFile = 'release-signing.properties'
  130. }
  131.  
  132. // Cast to appropriate types.
  133. ext.cdvBuildMultipleApks = cdvBuildMultipleApks == null ? false : cdvBuildMultipleApks.toBoolean();
  134. ext.cdvMinSdkVersion = cdvMinSdkVersion == null ? null : Integer.parseInt('' + cdvMinSdkVersion)
  135. ext.cdvVersionCode = cdvVersionCode == null ? null : Integer.parseInt('' + cdvVersionCode)
  136.  
  137. def computeBuildTargetName(debugBuild) {
  138. def ret = 'assemble'
  139. if (cdvBuildMultipleApks && cdvBuildArch) {
  140. def arch = cdvBuildArch == 'arm' ? 'armv7' : cdvBuildArch
  141. ret += '' + arch.toUpperCase().charAt(0) + arch.substring(1);
  142. }
  143. return ret + (debugBuild ? 'Debug' : 'Release')
  144. }
  145.  
  146. // Make cdvBuild a task that depends on the debug/arch-sepecific task.
  147. task cdvBuildDebug
  148. cdvBuildDebug.dependsOn {
  149. return computeBuildTargetName(true)
  150. }
  151.  
  152. task cdvBuildRelease
  153. cdvBuildRelease.dependsOn {
  154. return computeBuildTargetName(false)
  155. }
  156.  
  157. task cdvPrintProps << {
  158. println('cdvCompileSdkVersion=' + cdvCompileSdkVersion)
  159. println('cdvBuildToolsVersion=' + cdvBuildToolsVersion)
  160. println('cdvVersionCode=' + cdvVersionCode)
  161. println('cdvMinSdkVersion=' + cdvMinSdkVersion)
  162. println('cdvBuildMultipleApks=' + cdvBuildMultipleApks)
  163. println('cdvReleaseSigningPropertiesFile=' + cdvReleaseSigningPropertiesFile)
  164. println('cdvDebugSigningPropertiesFile=' + cdvDebugSigningPropertiesFile)
  165. println('cdvBuildArch=' + cdvBuildArch)
  166. println('computedVersionCode=' + android.defaultConfig.versionCode)
  167. android.productFlavors.each { flavor ->
  168. println('computed' + flavor.name.capitalize() + 'VersionCode=' + flavor.versionCode)
  169. }
  170. }
  171.  
  172. android {
  173. sourceSets {
  174. main {
  175. manifest.srcFile 'AndroidManifest.xml'
  176. java.srcDirs = ['src']
  177. resources.srcDirs = ['src']
  178. aidl.srcDirs = ['src']
  179. renderscript.srcDirs = ['src']
  180. res.srcDirs = ['res']
  181. assets.srcDirs = ['assets']
  182. jniLibs.srcDirs = ['libs']
  183. }
  184. }
  185.  
  186. defaultConfig {
  187. versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
  188. applicationId privateHelpers.extractStringFromManifest("package")
  189.  
  190. if (cdvMinSdkVersion != null) {
  191. minSdkVersion cdvMinSdkVersion
  192. }
  193. }
  194.  
  195. lintOptions {
  196. abortOnError false;
  197. }
  198.  
  199. compileSdkVersion cdvCompileSdkVersion
  200. buildToolsVersion cdvBuildToolsVersion
  201.  
  202. if (Boolean.valueOf(cdvBuildMultipleApks)) {
  203. productFlavors {
  204. armv7 {
  205. versionCode defaultConfig.versionCode*10 + 2
  206. ndk {
  207. abiFilters "armeabi-v7a", ""
  208. }
  209. }
  210. x86 {
  211. versionCode defaultConfig.versionCode*10 + 4
  212. ndk {
  213. abiFilters "x86", ""
  214. }
  215. }
  216. all {
  217. ndk {
  218. abiFilters "all", ""
  219. }
  220. }
  221. }
  222. }
  223. /*
  224.  
  225. ELSE NOTHING! DON'T MESS WITH THE VERSION CODE IF YOU DON'T HAVE TO!
  226.  
  227. else if (!cdvVersionCode) {
  228. def minSdkVersion = cdvMinSdkVersion ?: privateHelpers.extractIntFromManifest("minSdkVersion")
  229. // Vary versionCode by the two most common API levels:
  230. // 14 is ICS, which is the lowest API level for many apps.
  231. // 20 is Lollipop, which is the lowest API level for the updatable system webview.
  232. if (minSdkVersion >= 20) {
  233. defaultConfig.versionCode += 9
  234. } else if (minSdkVersion >= 14) {
  235. defaultConfig.versionCode += 8
  236. }
  237. }
  238. */
  239.  
  240. compileOptions {
  241. sourceCompatibility JavaVersion.VERSION_1_6
  242. targetCompatibility JavaVersion.VERSION_1_6
  243. }
  244.  
  245. if (cdvReleaseSigningPropertiesFile) {
  246. signingConfigs {
  247. release {
  248. // These must be set or Gradle will complain (even if they are overridden).
  249. keyAlias = ""
  250. keyPassword = "__unset" // And these must be set to non-empty in order to have the signing step added to the task graph.
  251. storeFile = null
  252. storePassword = "__unset"
  253. }
  254. }
  255. buildTypes {
  256. release {
  257. signingConfig signingConfigs.release
  258. }
  259. }
  260. addSigningProps(cdvReleaseSigningPropertiesFile, signingConfigs.release)
  261. }
  262. if (cdvDebugSigningPropertiesFile) {
  263. addSigningProps(cdvDebugSigningPropertiesFile, signingConfigs.debug)
  264. }
  265. }
  266.  
  267. dependencies {
  268. compile fileTree(dir: 'libs', include: '*.jar')
  269. debugCompile(project(path: "CordovaLib", configuration: "debug"))
  270. releaseCompile(project(path: "CordovaLib", configuration: "release"))
  271. compile "com.android.support:support-v4:24.1.1+"
  272. compile "com.google.firebase:firebase-core:10.2.0"
  273. compile "com.google.firebase:firebase-messaging:10.2.0"
  274. compile "com.google.android.gms:play-services-auth:10.2.0"
  275. compile "com.google.android.gms:play-services-identity:10.2.0"
  276. compile "me.leolin:ShortcutBadger:1.1.17@aar"
  277. }
  278.  
  279. def promptForReleaseKeyPassword() {
  280. if (!cdvReleaseSigningPropertiesFile) {
  281. return;
  282. }
  283. if ('__unset'.equals(android.signingConfigs.release.storePassword)) {
  284. android.signingConfigs.release.storePassword = privateHelpers.promptForPassword('Enter key store password: ')
  285. }
  286. if ('__unset'.equals(android.signingConfigs.release.keyPassword)) {
  287. android.signingConfigs.release.keyPassword = privateHelpers.promptForPassword('Enter key password: ');
  288. }
  289. }
  290.  
  291. gradle.taskGraph.whenReady { taskGraph ->
  292. taskGraph.getAllTasks().each() { task ->
  293. if (task.name == 'validateReleaseSigning' || task.name == 'validateSigningRelease') {
  294. promptForReleaseKeyPassword()
  295. }
  296. }
  297. }
  298.  
  299. def addSigningProps(propsFilePath, signingConfig) {
  300. def propsFile = file(propsFilePath)
  301. def props = new Properties()
  302. propsFile.withReader { reader ->
  303. props.load(reader)
  304. }
  305.  
  306. def storeFile = new File(props.get('key.store') ?: privateHelpers.ensureValueExists(propsFilePath, props, 'storeFile'))
  307. if (!storeFile.isAbsolute()) {
  308. storeFile = RelativePath.parse(true, storeFile.toString()).getFile(propsFile.getParentFile())
  309. }
  310. if (!storeFile.exists()) {
  311. throw new FileNotFoundException('Keystore file does not exist: ' + storeFile.getAbsolutePath())
  312. }
  313. signingConfig.keyAlias = props.get('key.alias') ?: privateHelpers.ensureValueExists(propsFilePath, props, 'keyAlias')
  314. signingConfig.keyPassword = props.get('keyPassword', props.get('key.alias.password', signingConfig.keyPassword))
  315. signingConfig.storeFile = storeFile
  316. signingConfig.storePassword = props.get('storePassword', props.get('key.store.password', signingConfig.storePassword))
  317. def storeType = props.get('storeType', props.get('key.store.type', ''))
  318. if (!storeType) {
  319. def filename = storeFile.getName().toLowerCase();
  320. if (filename.endsWith('.p12') || filename.endsWith('.pfx')) {
  321. storeType = 'pkcs12'
  322. } else {
  323. storeType = signingConfig.storeType // "jks"
  324. }
  325. }
  326. signingConfig.storeType = storeType
  327. }
  328.  
  329. for (def func : cdvPluginPostBuildExtras) {
  330. func()
  331. }
  332.  
  333. // This can be defined within build-extras.gradle as:
  334. // ext.postBuildExtras = { ... code here ... }
  335. if (hasProperty('postBuildExtras')) {
  336. postBuildExtras()
  337. }
  338.  
  339. apply plugin: 'com.google.gms.google-services'
  340.  
  341. buildscript {
  342. repositories {
  343. jcenter()
  344. mavenLocal()
  345. }
  346. dependencies {
  347. classpath 'com.android.tools.build:gradle:+'
  348. classpath 'com.google.gms:google-services:3.0.0'
  349. }
  350. }
  351. // apply plugin: 'com.google.gms.google-services'
  352. // class must be used instead of id(string) to be able to apply plugin from non-root gradle file
  353. //apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
  354.  
  355. target=android-26
  356. android.library.reference.1=CordovaLib
  357. cordova.system.library.1=com.android.support:support-v4:24.1.1+
  358. cordova.gradle.include.1=cordova-plugin-crosswalk-webview/salestorm-xwalk.gradle
  359. cordova.system.library.2=com.android.support:support-v4:24.1.1+
  360. cordova.system.library.3=com.google.firebase:firebase-core:10.2.0
  361. cordova.system.library.4=com.google.firebase:firebase-messaging:10.2.0
  362. cordova.system.library.5=com.google.android.gms:play-services-auth:10.2.0
  363. cordova.system.library.6=com.google.android.gms:play-services-identity:10.2.0
  364. cordova.gradle.include.2=cordova-plugin-fcm/salestorm-FCMPlugin.gradle
  365. cordova.system.library.6=com.android.support:support-v13:25.1.0
  366. cordova.system.library.7=me.leolin:ShortcutBadger:1.1.17@aar
  367. cordova.gradle.include.3=phonegap-plugin-push/salestorm-push.gradle
  368.  
  369. <?xml version='1.0' encoding='utf-8'?>
  370. <widget id="com.exxica.salestorm" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  371. <name>SaleStorm</name>
  372. <description>Exxica SaleStorm CRM Mobile.</description>
  373. <author email="post@exxica.com" href="https://exxica.com/">Exxica Dev Team</author>
  374. <content src="index.html" />
  375. <access origin="*" />
  376. <access launch-external="yes" origin="tel:*" />
  377. <access launch-external="yes" origin="mailto:*" />
  378. <allow-intent href="http://*/*" />
  379. <allow-intent href="https://*/*" />
  380. <allow-intent href="tel:*" />
  381. <allow-intent href="sms:*" />
  382. <allow-intent href="mailto:*" />
  383. <allow-intent href="geo:*" />
  384. <allow-navigation href="http://localhost:8080/*" />
  385. <preference name="ScrollEnabled" value="false" />
  386. <preference name="android-minSdkVersion" value="16" />
  387. <preference name="BackupWebStorage" value="none" />
  388. <preference name="SplashMaintainAspectRatio" value="true" />
  389. <preference name="FadeSplashScreenDuration" value="300" />
  390. <preference name="SplashShowOnlyFirstTime" value="false" />
  391. <preference name="SplashScreen" value="screen" />
  392. <preference name="SplashScreenDelay" value="3000" />
  393. <platform name="android">
  394. <allow-intent href="market:*" />
  395. <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
  396. <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
  397. <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
  398. <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
  399. <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
  400. <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
  401. <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
  402. <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
  403. <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
  404. <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
  405. <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
  406. <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
  407. <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
  408. <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
  409. <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
  410. <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
  411. <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
  412. <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
  413. </platform>
  414. <platform name="ios">
  415. <allow-intent href="itms:*" />
  416. <allow-intent href="itms-apps:*" />
  417. <icon height="57" src="resources/ios/icon/icon.png" width="57" />
  418. <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
  419. <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
  420. <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
  421. <icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
  422. <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
  423. <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
  424. <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
  425. <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
  426. <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
  427. <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
  428. <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
  429. <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
  430. <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
  431. <icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
  432. <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
  433. <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
  434. <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
  435. <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
  436. <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
  437. <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
  438. <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
  439. <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
  440. <splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
  441. <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
  442. <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
  443. <splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
  444. <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
  445. <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
  446. <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
  447. <splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
  448. </platform>
  449. <allow-navigation href="http://192.168.0.96:4000" />
  450. <engine name="browser" spec="^4.1.0" />
  451. <engine name="ios" spec="^4.5.1" />
  452. <engine name="android" spec="^6.3.0" />
  453. <plugin name="cordova-plugin-device" spec="^1.1.4" />
  454. <plugin name="cordova-plugin-network-information" spec="^1.3.3" />
  455. <plugin name="cordova-plugin-fcm" spec="^2.1.2" />
  456. <plugin name="cordova-plugin-ionic-webview" spec="^1.1.11" />
  457. <plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
  458. <plugin name="cordova-plugin-statusbar" spec="git+https://github.com/apache/cordova-plugin-statusbar.git" />
  459. <plugin name="cordova-plugin-whitelist" spec="^1.3.1" />
  460. <plugin name="cordova-plugin-camera" spec="^2.4.1" />
  461. <plugin name="cordova-plugin-file" spec="^4.3.3" />
  462. <plugin name="cordova-sqlite-storage" spec="^2.0.4" />
  463. <plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
  464. <plugin name="phonegap-plugin-push" spec="^2.0.0" />
  465. <plugin name="cordova-plugin-email-composer" spec="^0.8.10" />
  466. <plugin name="cordova-plugin-crosswalk-webview" spec="^2.3.0">
  467. <variable name="XWALK_VERSION" value="23+" />
  468. <variable name="XWALK_LITEVERSION" value="xwalk_core_library_canary:17+" />
  469. <variable name="XWALK_COMMANDLINE" value="--disable-pull-to-refresh-effect" />
  470. <variable name="XWALK_MODE" value="embedded" />
  471. <variable name="XWALK_MULTIPLEAPK" value="true" />
  472. </plugin>
  473. </widget>
Add Comment
Please, Sign In to add comment