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