Advertisement
Guest User

build.gradle Module:app

a guest
Apr 15th, 2019
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.77 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. google()
  4. maven { url 'https://maven.fabric.io/public' }
  5. }
  6.  
  7. dependencies {
  8. classpath 'io.fabric.tools:gradle:1.28.1'
  9. }
  10. }
  11. apply plugin: 'com.android.application'
  12. apply plugin: 'io.fabric'
  13. apply plugin: 'devicefarm'
  14.  
  15. repositories {
  16. maven { url 'https://maven.fabric.io/public' }
  17. }
  18.  
  19. android {
  20. compileSdkVersion 28
  21.  
  22. defaultConfig {
  23. applicationId 'com.yabs.video'
  24. minSdkVersion 26
  25. targetSdkVersion 28
  26. versionCode 1
  27. versionName '1.0.0'
  28. ndk {
  29. abiFilters 'armeabi-v7a', 'x86'
  30. }
  31. multiDexEnabled true
  32. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  33. // Deprecated. Used by net.openid:appauth
  34. manifestPlaceholders = [
  35. 'appAuthRedirectScheme': 'host.exp.exponent'
  36. ]
  37. }
  38. dexOptions {
  39. javaMaxHeapSize System.getenv("DISABLE_DEX_MAX_HEAP") ? null : "8g"
  40. }
  41.  
  42. flavorDimensions 'remoteKernel'
  43. productFlavors {
  44. devKernel {
  45. dimension 'remoteKernel'
  46. }
  47. prodKernel {
  48. dimension 'remoteKernel'
  49. }
  50. }
  51. signingConfigs {
  52. debug {
  53. storeFile file('../debug.keystore')
  54. }
  55. release {
  56. storeFile file(System.getenv("ANDROID_KEYSTORE_PATH") ?: "release-key.jks")
  57. storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD")
  58. keyAlias System.getenv("ANDROID_KEY_ALIAS")
  59. keyPassword System.getenv("ANDROID_KEY_PASSWORD")
  60. }
  61. }
  62. buildTypes {
  63. debug {
  64. debuggable true
  65. ext.enableCrashlytics = false
  66. }
  67. release {
  68. minifyEnabled true
  69. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  70. signingConfig signingConfigs.release
  71. }
  72. }
  73. lintOptions {
  74. abortOnError false
  75. }
  76. packagingOptions {
  77. pickFirst "**"
  78. }
  79. configurations.all {
  80. resolutionStrategy.force 'com.android.support:design:27.1.0'
  81. }
  82. }
  83.  
  84. devicefarm {
  85. projectName System.getenv("DEVICEFARM_PROJECT_NAME")
  86. devicePool System.getenv("DEVICEFARM_DEVICE_POOL")
  87. executionTimeoutMinutes 40
  88. authentication {
  89. accessKey System.getenv("AWS_ACCESS_KEY_ID")
  90. secretKey System.getenv("AWS_SECRET_ACCESS_KEY")
  91. }
  92. }
  93.  
  94. configurations.all {
  95. resolutionStrategy {
  96. force 'org.webkit:android-jsc:r224109'
  97. }
  98. }
  99.  
  100. // WHEN_PREPARING_SHELL_REMOVE_FROM_HERE
  101.  
  102. apply from: 'expo.gradle'
  103.  
  104. // WHEN_PREPARING_SHELL_REMOVE_TO_HERE
  105.  
  106. apply from: '../../node_modules/react-native-unimodules/gradle.groovy'
  107.  
  108. dependencies {
  109. addUnimodulesDependencies()
  110. implementation fileTree(dir: 'libs', include: ['*.jar'])
  111.  
  112. implementation 'com.android.support:multidex:1.0.1'
  113.  
  114. // Our dependencies
  115. implementation 'com.android.support:appcompat-v7:28.0.0'
  116.  
  117. // Our dependencies from ExpoView
  118. // DON'T ADD ANYTHING HERE THAT ISN'T IN EXPOVIEW. ONLY COPY THINGS FROM EXPOVIEW TO HERE.
  119. implementation 'com.android.support:appcompat-v7:28.0.0'
  120. implementation 'com.facebook.android:facebook-android-sdk:4.37.0'
  121. implementation('com.facebook.android:audience-network-sdk:4.99.0') {
  122. exclude module: 'play-services-ads'
  123. }
  124. compileOnly 'org.glassfish:javax.annotation:3.1.1'
  125. implementation 'com.jakewharton:butterknife:8.4.0'
  126. implementation 'de.greenrobot:eventbus:2.4.0'
  127.  
  128. // Be careful when upgrading! Upgrading might break experience scoping. Check with Jesse. See Analytics.resetAmplitudeDatabaseHelper
  129. implementation 'com.amplitude:android-sdk:2.9.2'
  130.  
  131. implementation 'com.squareup.picasso:picasso:2.5.2'
  132. implementation 'com.google.android.gms:play-services-gcm:15.0.1'
  133. implementation 'com.google.android.gms:play-services-analytics:16.0.1'
  134. implementation 'com.google.android.gms:play-services-maps:15.0.1'
  135. implementation 'com.google.android.gms:play-services-auth:15.0.1'
  136. implementation 'com.google.android.gms:play-services-location:15.0.1'
  137. implementation 'com.google.android.gms:play-services-ads:15.0.1'
  138. annotationProcessor 'com.raizlabs.android:DBFlow-Compiler:2.2.1'
  139. implementation "com.raizlabs.android:DBFlow-Core:2.2.1"
  140. implementation "com.raizlabs.android:DBFlow:2.2.1"
  141. implementation "com.madgag.spongycastle:core:1.53.0.0"
  142. implementation "com.madgag.spongycastle:prov:1.53.0.0"
  143. debugImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
  144. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
  145. releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
  146. implementation 'com.facebook.device.yearclass:yearclass:2.1.0'
  147. implementation 'commons-io:commons-io:1.4'
  148. implementation 'me.leolin:ShortcutBadger:1.1.4@aar'
  149. implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
  150. implementation 'com.yqritc:android-scalablevideoview:1.0.1'
  151. implementation 'commons-codec:commons-codec:1.10'
  152. implementation 'com.segment.analytics.android:analytics:4.3.0'
  153. implementation 'com.google.zxing:core:3.3.3'
  154. implementation 'net.openid:appauth:0.4.1'
  155. implementation('com.airbnb.android:lottie:2.5.5') {
  156. exclude group: 'com.android.support', module: 'appcompat-v7'
  157. }
  158. implementation('io.nlopez.smartlocation:library:3.2.11') {
  159. transitive = false
  160. }
  161. implementation 'com.android.support:exifinterface:28.0.0'
  162. implementation 'com.squareup.okio:okio:1.9.0'
  163. implementation 'com.facebook.soloader:soloader:0.5.1'
  164.  
  165. implementation 'com.google.android.exoplayer:exoplayer:2.6.1'
  166. implementation 'expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1@aar'
  167.  
  168. // expo-file-system
  169. implementation 'com.squareup.okhttp3:okhttp:3.10.0'
  170. implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.10.0'
  171.  
  172. // Testing
  173. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  174. // We use a modified build of com.android.support.test:runner:1.0.1. Explanation in maven-test/README
  175. androidTestImplementation 'com.android.support.test:runner:1.0.1'
  176. androidTestImplementation 'com.android.support:support-annotations:27.1.1'
  177. androidTestImplementation 'com.google.code.findbugs:jsr305:3.0.0'
  178. androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
  179. androidTestImplementation 'com.azimolabs.conditionwatcher:conditionwatcher:0.2'
  180.  
  181. testImplementation 'junit:junit:4.12'
  182. testImplementation 'org.mockito:mockito-core:1.10.19'
  183. testImplementation 'org.robolectric:robolectric:3.8'
  184. testImplementation 'com.android.support.test:runner:1.0.2-alpha1'
  185. testImplementation 'com.android.support.test:rules:1.0.2-alpha1'
  186.  
  187.  
  188. implementation('host.exp.exponent:expoview:32.0.0@aar') {
  189. transitive = true
  190. exclude group: 'com.squareup.okhttp3', module: 'okhttp'
  191. exclude group: 'com.squareup.okhttp3', module: 'okhttp-urlconnection'
  192. }
  193.  
  194.  
  195.  
  196.  
  197. api 'com.facebook.react:react-native:32.0.0'
  198. api 'host.exp.exponent:expo-app-loader-provider:1.0.0'
  199. api 'host.exp.exponent:expo-core:2.0.0'
  200. api 'host.exp.exponent:expo-constants-interface:2.0.0'
  201. api 'host.exp.exponent:expo-constants:2.0.1'
  202. api 'host.exp.exponent:expo-errors:1.0.0'
  203. api 'host.exp.exponent:expo-file-system-interface:2.0.0'
  204. api 'host.exp.exponent:expo-file-system:2.0.0'
  205. api 'host.exp.exponent:expo-image-loader-interface:2.0.0'
  206. api 'host.exp.exponent:expo-permissions:2.0.0'
  207. api 'host.exp.exponent:expo-permissions-interface:2.0.0'
  208. api 'host.exp.exponent:expo-sensors-interface:2.0.0'
  209. api 'host.exp.exponent:expo-react-native-adapter:2.0.0'
  210. api 'host.exp.exponent:expo-task-manager:1.0.0'
  211. api 'host.exp.exponent:expo-task-manager-interface:1.0.0'
  212.  
  213. // Optional universal modules, could be removed
  214. // along with references in MainActivity
  215. api 'host.exp.exponent:expo-ads-admob:2.0.0'
  216. api 'host.exp.exponent:expo-app-auth:2.0.0'
  217. api 'host.exp.exponent:expo-analytics-segment:2.0.0'
  218. api 'host.exp.exponent:expo-barcode-scanner-interface:2.0.0'
  219. api 'host.exp.exponent:expo-barcode-scanner:2.0.0'
  220. api 'host.exp.exponent:expo-camera-interface:2.0.0'
  221. api 'host.exp.exponent:expo-camera:2.0.0'
  222. api 'host.exp.exponent:expo-contacts:2.0.0'
  223. api 'host.exp.exponent:expo-face-detector:2.0.0'
  224. api 'host.exp.exponent:expo-face-detector-interface:2.0.0'
  225. api 'host.exp.exponent:expo-font:2.0.0'
  226. api 'host.exp.exponent:expo-gl-cpp:2.0.0'
  227. api 'host.exp.exponent:expo-gl:2.0.0'
  228. api 'host.exp.exponent:expo-google-sign-in:2.0.0'
  229. api 'host.exp.exponent:expo-local-authentication:2.0.0'
  230. api 'host.exp.exponent:expo-localization:2.0.0'
  231. api 'host.exp.exponent:expo-location:2.0.1'
  232. api 'host.exp.exponent:expo-media-library:2.0.0'
  233. api 'host.exp.exponent:expo-print:2.0.0'
  234. api 'host.exp.exponent:expo-sensors:2.0.0'
  235. api 'host.exp.exponent:expo-sms:2.0.0'
  236. api 'host.exp.exponent:expo-background-fetch:1.0.0'
  237.  
  238.  
  239. }
  240.  
  241. // This has to be down here for some reason
  242. apply plugin: 'com.google.gms.google-services'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement