Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@acro5piano
Last active September 17, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acro5piano/6933cbabf64645514a74e2129a36fc4b to your computer and use it in GitHub Desktop.
Save acro5piano/6933cbabf64645514a74e2129a36fc4b to your computer and use it in GitHub Desktop.
// node_modules/react-native-repro/android/build.gradle
apply plugin: 'com.android.library'
def getMainProp(property, fallback) {
return rootProject.ext.has(property) ? rootProject.ext.get(property) : fallback
}
android {
compileSdkVersion getMainProp('compileSdkVersion', 26)
buildToolsVersion getMainProp('buildToolsVersion', '26.0.3')
defaultConfig {
minSdkVersion getMainProp('minSdkVersion', 16)
// targetSdkVersion 26
versionCode 1
versionName "1.0.0"
}
}
repositories {
mavenCentral()
maven { url 'https://cdn.reproio.com/android' }
}
dependencies {
compile "com.facebook.react:react-native:${getMainProp('reactNativeVersion', '+')}"
// NOTE: In order to use new gradle versions change 'compile' not to 'implementation' but instead
// change it to 'api' in order to expose Repro library functions to the gradle main project.
api 'io.repro:repro-android-sdk:4.1.0'
}
diff --git a/node_modules/react-native-repro/android/build.gradle b/node_modules/react-native-repro/android/build.gradle
index bb26a4e..03e39f2 100644
--- a/node_modules/react-native-repro/android/build.gradle
+++ b/node_modules/react-native-repro/android/build.gradle
@@ -20,6 +20,7 @@ android {
repositories {
mavenCentral()
+ maven { url 'https://cdn.reproio.com/android' }
}
dependencies {
@@ -27,6 +28,6 @@ dependencies {
// NOTE: In order to use new gradle versions change 'compile' not to 'implementation' but instead
// change it to 'api' in order to expose Repro library functions to the gradle main project.
- compile "io.repro:repro-android-sdk:+"
+ api 'io.repro:repro-android-sdk:4.1.0'
}
* What went wrong:
Could not determine the dependencies of task ':app:mergeReleaseAssets'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve io.repro:repro-android-sdk:+.
Required by:
project :app > project :react-native-repro
> Failed to list versions for io.repro:repro-android-sdk.
> Could not list versions using M2 pattern 'https://jitpack.io/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])'.
> Could not get resource 'https://jitpack.io/io/repro/repro-android-sdk/'.
> Could not GET 'https://jitpack.io/io/repro/repro-android-sdk/'. Received status code 522 from server: Origin Connection Time-out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment