Guest User

Untitled

a guest
Jan 18th, 2019
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. **It's my first encounter with flavor dimensions. I am trying to compile a ready made code but somehow I ended up with this issue.
  2.  
  3. apply plugin: 'com.android.application'
  4. android {
  5. configurations.all {
  6. resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
  7. }
  8. compileSdkVersion 28
  9. buildToolsVersion "28.0.3"strong text
  10. defaultConfig {
  11. minSdkVersion 16
  12. targetSdkVersion 28
  13. manifestPlaceholders = [appPackageName: "${applicationId}"]
  14. multiDexEnabled true
  15. }
  16. dexOptions {
  17. jumboMode true
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. productFlavors {
  26. pixol {
  27. applicationId "com.dslr.camera.pixol"
  28.  
  29. //Package name change it before uploading to store
  30. resValue "string", "app_name", "Pixol" //app name change it before uploading to store
  31. resValue "string", "dev_name", "" // Google play developer name
  32. resValue "string", "facebook_app_id", "" //facebook app id (get it from facebook sdk see the dcumentation)
  33. //admob
  34. resValue "string", "main_full", "YOUR_ADMOB_AD_UNIT_HERE"// admob interstitial ad 1
  35. resValue "string", "result_full", "YOUR_ADMOB_AD_UNIT_HERE" // admob interstitial ad 2
  36. resValue "string", "main_native", "YOUR_ADMOB_AD_UNIT_HERE" // admob naive large tamplate
  37. resValue "string", "result_native", "YOUR_ADMOB_AD_UNIT_HERE" // admob naive large tamplate
  38.  
  39. //audience network
  40. resValue "string", "main_full_fb", "YOUR_FACEBOOK_AD_UNIT_HERE"// fb ad interstitial ad 1
  41. resValue "string", "result_full_fb", "YOUR_FACEBOOK_AD_UNIT_HERE"// fb ad interstitial ad 2
  42.  
  43.  
  44. manifestPlaceholders = [appIcon: "@mipmap/ic_launcher"] // app icon change in mipmap folder
  45. versionCode 2
  46. versionName "1"
  47.  
  48. }
  49.  
  50. }
  51.  
  52. /* 3) Exclude duplicate licenses */
  53. packagingOptions {
  54. exclude 'META-INF/LICENSE.txt'
  55. exclude 'META-INF/LICENSE'
  56. exclude 'META-INF/NOTICE.txt'
  57. exclude 'META-INF/NOTICE'
  58. exclude 'META-INF/DEPENDENCIES'
  59. pickFirst 'AndroidManifest.xml'
  60. exclude 'META-INF/rxjava.properties'
  61. }
  62.  
  63.  
  64. }
  65.  
  66. dependencies {
  67. /* compile fileTree(include: ['*.jar'], dir: 'libs')
  68. *//* 4) Add the CSDK framework dependencies (Make sure these version numbers are correct) *//*
  69. compile 'com.android.support:appcompat-v7:25.3.1'
  70. compile 'com.mlsdev.rximagepicker:library:2.0.0'
  71. compile 'com.adobe.creativesdk.foundation:auth:0.9.1251'
  72. compile 'com.adobe.creativesdk:image:4.8.4'
  73. compile 'com.localytics.android:library:3.8.0'
  74. compile 'com.github.medyo:fancybuttons:1.8.3'
  75. compile 'com.jakewharton:butterknife:7.0.1'
  76. compile 'com.android.support:multidex:1.0.0'
  77. compile 'com.facebook.android:facebook-android-sdk:[4,5)'
  78. compile 'com.facebook.android:audience-network-sdk:4.+'
  79.  
  80. compile 'com.google.android.gms:play-services-ads:10.2.1'
  81. compile 'com.cocosw:bottomsheet:1.+@aar'*/
  82.  
  83. }
Add Comment
Please, Sign In to add comment