Skip to content

Commit

Permalink
Preparing for version 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Apr 11, 2019
1 parent 75d8232 commit 615ccac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
30 changes: 0 additions & 30 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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",
Expand Down

0 comments on commit 615ccac

Please sign in to comment.