-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
build.gradle
224 lines (176 loc) · 7.42 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'
apply plugin: 'de.undercouch.download'
apply plugin: 'kotlin-kapt'
buildscript {
// Simple helper that allows the root project to override versions declared by this library.
ext.safeExtGet = { prop, fallback ->
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
repositories {
// If you have maven { url "https://jitpack.io" } as your resolving url,
// then Jitpack will only return the POM for the Android dependency causing the Gradle sync to fail.
// However, when you change url to "https://www.jitpack.io", Jitpack returns POM, AAR, and sources.jar.
// That is why we were adding www even though jitpacks docs don't say so.
// See https://github.com/jitpack/jitpack.io/issues/4002.
maven { url "https://www.jitpack.io" }
mavenCentral()
google()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.6.10')}")
}
}
repositories {
maven { url "https://www.jitpack.io" }
mavenCentral()
}
android {
compileSdkVersion safeExtGet("compileSdkVersion", 31)
// Used to override the NDK path/version on internal CI or by allowing
// users to customize the NDK path/version from their root project (e.g. for M1 support)
if (rootProject.hasProperty("ndkPath")) {
ndkPath rootProject.ext.ndkPath
}
if (rootProject.hasProperty("ndkVersion")) {
ndkVersion rootProject.ext.ndkVersion
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.majorVersion
}
buildFeatures {
viewBinding true
}
defaultConfig {
minSdkVersion safeExtGet("minSdkVersion", 21)
targetSdkVersion safeExtGet("targetSdkVersion", 31)
versionCode 1
versionName "1.0"
missingDimensionStrategy('versioning', 'versioned')
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// use `versionedRelease` configuration when publishing to maven
defaultPublishConfig "versionedRelease"
}
dependencies {
api fileTree(dir: 'libs', include: ['*.jar'])
api 'androidx.multidex:multidex:2.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
testImplementation 'junit:junit:4.12'
api("com.facebook.fbjni:fbjni-java-only:0.2.2")
implementation project(":expoview")
// WHEN_DISTRIBUTING_REMOVE_TO_HERE
// React native dependencies
api 'androidx.appcompat:appcompat:1.2.0'
api 'androidx.autofill:autofill:1.1.0'
api 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
api 'com.facebook.fbjni:fbjni-java-only:0.2.2'
api 'com.facebook.fresco:fresco:2.5.0'
api 'com.facebook.fresco:animated-gif:2.5.0'
api 'com.facebook.fresco:animated-webp:2.5.0'
api 'com.facebook.fresco:webpsupport:2.5.0'
api 'com.facebook.fresco:imagepipeline-okhttp3:2.5.0'
api 'com.facebook.fresco:ui-common:2.5.0'
api 'com.facebook.infer.annotation:infer-annotation:0.18.0'
api 'com.facebook.soloader:soloader:0.10.3'
api 'com.facebook.yoga:proguard-annotations:1.19.0'
api 'com.google.code.findbugs:jsr305:3.0.2'
api 'com.squareup.okhttp3:okhttp-urlconnection:4.9.2'
api 'com.squareup.okhttp3:okhttp:4.9.2'
api 'com.squareup.okio:okio:2.9.0'
api 'javax.inject:javax.inject:1'
// Our dependencies
compileOnly 'org.glassfish:javax.annotation:3.1.1'
api 'de.greenrobot:eventbus:2.4.0'
api "androidx.room:room-runtime:2.1.0"
api 'com.squareup.picasso:picasso:2.5.2'
api 'com.google.android.gms:play-services-analytics:17.0.0'
api 'com.google.android.gms:play-services-maps:18.0.0'
api 'com.google.android.gms:play-services-auth:17.0.0'
api 'com.google.android.gms:play-services-location:17.0.0'
api 'com.google.android.gms:play-services-fitness:17.0.0'
api 'com.google.android.gms:play-services-wallet:17.0.0' //may need 10.+
debugApi 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
// debugApi 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
releaseApi 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
api 'commons-io:commons-io:2.6'
api 'me.leolin:ShortcutBadger:1.1.4@aar'
implementation "com.github.CanHub:Android-Image-Cropper:4.3.0"
api 'commons-codec:commons-codec:1.10'
api 'net.openid:appauth:0.7.1'
api 'com.airbnb.android:lottie:3.4.0'
compileOnly 'io.branch.sdk.android:library:4.1.0'
api "androidx.exifinterface:exifinterface:1.0.0"
api "androidx.legacy:legacy-support-v4:1.0.0"
api "androidx.browser:browser:1.0.0"
// expo-face-detector
implementation 'com.google.mlkit:face-detection:16.1.5'
// expo-ads-admob
implementation 'com.google.android.gms:play-services-ads:20.5.0'
// For apps targeting Android 12, add WorkManager dependency.
// See more at https://developers.google.com/admob/android/rel-notes
constraints {
implementation('androidx.work:work-runtime:2.7.0') {
because '''androidx.work:work-runtime:2.1.0 pulled from
play-services-ads has a bug using PendingIntent without
FLAG_IMMUTABLE or FLAG_MUTABLE and will fail in Apps
targeting S+.'''
}
}
// expo-ads-facebook
api 'com.facebook.android:audience-network-sdk:6.5.0'
// expo-facebook
api 'com.facebook.android:facebook-core:9.0.0'
api 'com.facebook.android:facebook-login:9.0.0'
// expo-segment
api 'com.segment.analytics.android:analytics:4.10.4'
api 'com.segment.analytics.android.integrations:firebase:2.+@aar'
// react-native-screens
api 'androidx.fragment:fragment:1.2.2'
api 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
api 'com.google.android.material:material:1.1.0'
api 'com.google.firebase:firebase-core:17.2.3'
api 'com.google.firebase:firebase-messaging:22.0.0'
api 'com.google.maps.android:android-maps-utils:0.5'
// Remember to update DetachAppTemplate build.gradle if you add any excludes or transitive = false here!
// Used only in Expo Go, see Analytics.java
compileOnly 'com.amplitude:android-sdk:2.23.2'
// expo-file-system
api 'com.squareup.okhttp3:okhttp:3.10.0'
api 'com.squareup.okhttp3:okhttp-urlconnection:3.10.0'
// expo-av
// See explanation in expo-av/build.gradle
api 'com.google.android.exoplayer:extension-okhttp:2.18.1'
// expo-application
api 'com.android.installreferrer:installreferrer:1.0'
//dbflow
kapt "com.github.Raizlabs.DBFlow:dbflow-processor:${safeExtGet('dbFlowVersion', '4.2.4')}"
implementation "com.github.Raizlabs.DBFlow:dbflow-core:${safeExtGet('dbFlowVersion', '4.2.4')}"
implementation "com.github.Raizlabs.DBFlow:dbflow:${safeExtGet('dbFlowVersion', '4.2.4')}"
implementation 'com.cronutils:cron-utils:4.1.3'
// @react-native-community/viewpager
api 'com.github.troZee:ViewPager2:v1.0.6'
// stripe-react-native
implementation('com.stripe:stripe-android:20.5.+')
implementation('com.stripe:financial-connections:20.5.+')
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0'
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
implementation 'com.google.android.material:material:1.3.0'
// react-native-webview
implementation "androidx.webkit:webkit:1.4.0"
// expo-updates
implementation 'org.bouncycastle:bcutil-jdk15to18:1.70'
// react-native-maps
implementation "androidx.work:work-runtime:2.7.1"
}