From 615ccacae2b6c2b45cb5be22a60659d1c11c6fb6 Mon Sep 17 00:00:00 2001 From: Cesar de la Vega Date: Wed, 10 Apr 2019 18:06:29 -0700 Subject: [PATCH] Preparing for version 2.1.1 --- CHANGELOG.md | 3 +++ android/build.gradle | 30 ------------------------------ package.json | 6 +++--- 3 files changed, 6 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19c6d9d8..9a78cb18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.1.1 +- If using an app ejected from Expo, the Android project wouldn't build since it couldn't find the react-native dependency. This release should fix it. + ## 2.1.0 - Updates SDK versions to 2.1.0 to include new error handling - **BREAKING CHANGE** errors now contain a `userInfo` object with the message, an underlying error and a readable error code. The error codes have completely changed too and updated to the SDK 2.1.0. diff --git a/android/build.gradle b/android/build.gradle index 8a0d3ee3..5884260f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -26,36 +26,6 @@ android { repositories { google() jcenter() - - def found = false - def parentDir = rootProject.projectDir - def reactNativeAndroidName = 'React Native (Node Modules)' - - 1.upto(4, { - if (found) return true - parentDir = parentDir.parentFile - def reactNativeAndroid = new File( - parentDir, - 'node_modules/react-native/android' - ) - - if (reactNativeAndroid.exists()) { - maven { - url reactNativeAndroid.toString() - name reactNativeAndroidName - } - - println "${project.name}: using React Native sources from ${reactNativeAndroid.toString()}" - found = true - } - }) - - if (!found) { - throw new GradleException( - "${project.name}: unable to locate React Native Android sources, " + - "ensure you have you installed React Native as a dependency and try again." - ) - } } dependencies { diff --git a/package.json b/package.json index 6a4ad75d..d24f6b08 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-purchases", "title": "React Native Purchases", - "version": "2.1.0", + "version": "2.1.1", "description": "", "main": "index.js", "scripts": { @@ -24,8 +24,8 @@ "license": "MIT", "readmeFilename": "README.md", "peerDependencies": { - "react": "^16.6.3", - "react-native": "^0.58.0" + "react": ">= 16.6.3", + "react-native": ">= 0.58.2" }, "devDependencies": { "babel-eslint": "^10.0.1",