maxkomarychev / react-native-ultimate-config

Config that works
MIT License
261 stars 31 forks source link

Update build.gradle instructions for later versions of react-native #147

Open krishnagopinath opened 1 month ago

krishnagopinath commented 1 month ago

Describe the bug

The quick start guide has the following setup instructions for android:

apply plugin in gradle Add this right after applying react's plugin:

apply from: "../../node_modules/react-native-ultimate-config/android/rnuc.gradle"

Final code:

apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-ultimate-config/android/rnuc.gradle"

react.gradle was removed from build.gradle, so these instructions are no longer valid. Where should the rnuc.gradle reference be placed now?

Environment

Integration option

Env file

OS

Packages

FBRAA commented 1 month ago
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
apply plugin: 'com.google.gms.google-services'
apply from: "../../node_modules/react-native-ultimate-config/android/rnuc.gradle"

It seems to work for me this way.

Usage is the same project.config.get('BUNDLE_ID')

RN 0.74.2