Skip to content

Instantly share code, notes, and snippets.

@Riive-Inc
Created October 23, 2019 02:00
Show Gist options
  • Save Riive-Inc/8aadce38869915ecb3d4c8d548bf0daa to your computer and use it in GitHub Desktop.
Save Riive-Inc/8aadce38869915ecb3d4c8d548bf0daa to your computer and use it in GitHub Desktop.
Linked Android Gradle Stuff
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