@@ -15,9 +15,7 @@ import com.android.build.OutputFile
15
15
* // the name of the generated asset file containing your JS bundle
16
16
* bundleAssetName: "index.android.bundle",
17
17
*
18
- * // the entry file for bundle generation. If none specified and
19
- * // "index.android.js" exists, it will be used. Otherwise "index.js" is
20
- * // default. Can be overridden with ENTRY_FILE environment variable.
18
+ * // the entry file for bundle generation
21
19
* entryFile: "index.android.js",
22
20
*
23
21
* // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format
@@ -78,6 +76,7 @@ import com.android.build.OutputFile
78
76
*/
79
77
80
78
project. ext. react = [
79
+ entryFile : " index.js" ,
81
80
enableHermes : false , // clean and rebuild if changing
82
81
]
83
82
@@ -129,7 +128,7 @@ android {
129
128
}
130
129
131
130
defaultConfig {
132
- applicationId " com.appgobarber "
131
+ applicationId " com.mobile "
133
132
minSdkVersion rootProject. ext. minSdkVersion
134
133
targetSdkVersion rootProject. ext. targetSdkVersion
135
134
versionCode 1
@@ -163,14 +162,6 @@ android {
163
162
proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
164
163
}
165
164
}
166
-
167
- packagingOptions {
168
- pickFirst " lib/armeabi-v7a/libc++_shared.so"
169
- pickFirst " lib/arm64-v8a/libc++_shared.so"
170
- pickFirst " lib/x86/libc++_shared.so"
171
- pickFirst " lib/x86_64/libc++_shared.so"
172
- }
173
-
174
165
// applicationVariants are e.g. debug, release
175
166
applicationVariants. all { variant ->
176
167
variant. outputs. each { output ->
@@ -189,23 +180,8 @@ android {
189
180
190
181
dependencies {
191
182
implementation fileTree(dir : " libs" , include : [" *.jar" ])
192
- // noinspection GradleDynamicVersion
193
183
implementation " com.facebook.react:react-native:+" // From node_modules
194
184
195
- implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
196
-
197
- debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
198
- exclude group :' com.facebook.fbjni'
199
- }
200
-
201
- debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
202
- exclude group :' com.facebook.flipper'
203
- }
204
-
205
- debugImplementation(" com.facebook.flipper:flipper-fresco-plugin:${ FLIPPER_VERSION} " ) {
206
- exclude group :' com.facebook.flipper'
207
- }
208
-
209
185
if (enableHermes) {
210
186
def hermesPath = " ../../node_modules/hermes-engine/android/" ;
211
187
debugImplementation files(hermesPath + " hermes-debug.aar" )
@@ -222,10 +198,9 @@ task copyDownloadableDepsToLibs(type: Copy) {
222
198
into ' libs'
223
199
}
224
200
225
- apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
226
-
227
201
project. ext. vectoricons = [
228
- iconFontName : [' Feather .ttf' ]
229
- ];
202
+ iconFontNames : [ ' MaterialIcons .ttf' ] // Name of the font files you want to copy
203
+ ]
230
204
231
205
apply from : " ../../node_modules/react-native-vector-icons/fonts.gradle"
206
+ apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
0 commit comments