Created
October 23, 2019 02:00
-
-
Save Riive-Inc/8aadce38869915ecb3d4c8d548bf0daa to your computer and use it in GitHub Desktop.
Linked Android Gradle Stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In android/app/build.gradle: | |
dependencies { | |
... | |
compile project(':tipsi-stripe') | |
... | |
} | |
In android/build.gradle: | |
allprojects { | |
repositories { | |
mavenLocal() | |
google() | |
jcenter() | |
maven { | |
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm | |
url "$rootDir/../node_modules/react-native/android", | |
url "https://jitpack.io" | |
} | |
} | |
} | |
in android/app/src/main/java/com/projectname/MainApplication.java: | |
... | |
import expo.modules.payments.stripe.StripePackage; | |
import com.gettipsi.stripe.StripeReactPackage; | |
... | |
return Arrays.<ReactPackage>asList( | |
new MainReactPackage(), | |
new StripeReactPackage(), | |
... | |
); | |
in android/settings.gradle: | |
... | |
include ':tipsi-stripe' | |
project(':tipsi-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/tipsi-stripe/android') | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment