Skip to content

Commit

Permalink
Merge pull request #315 from auth0/bump-react
Browse files Browse the repository at this point in the history
Breaking: Require ReactNative version 0.62.2
  • Loading branch information
lbalmaceda authored Jun 8, 2020
2 parents 02ae265 + 970ccab commit 1396162
Show file tree
Hide file tree
Showing 4 changed files with 616 additions and 735 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ This SDK attempts to follow [semver](https://semver.org/) in a best-effort basis

| React Native SDK | Auth0 SDK |
| :--------------: | :-------: |
| v0.62.2 | v2.5.0 |
| v0.60.5 | v2.0.0 |
| v0.59.0 or lower | v1.6.0 |

Expand Down
18 changes: 8 additions & 10 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ buildscript {
}

dependencies {
// Matches recent template from React Native (0.60)
// https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L16
classpath("com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '3.4.1')}")
// Matches recent template from React Native (0.62)
// https://github.com/facebook/react-native/blob/0.62-stable/template/android/build.gradle#L15
classpath("com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '3.5.2')}")
}
}

apply plugin: 'com.android.library'
apply plugin: 'maven'

// Matches values in recent template from React Native 0.59 / 0.60
// https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L5-L9
// https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L5-L9
// Matches values in recent template from React Native 0.62
// https://github.com/facebook/react-native/blob/0.62-stable/template/android/build.gradle#L5-L8
def DEFAULT_COMPILE_SDK_VERSION = 28
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
def DEFAULT_MIN_SDK_VERSION = 16
Expand All @@ -43,17 +42,16 @@ android {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// Matches recent template from React Native 0.59 / 0.60
// https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L30
// https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L28
// Matches recent template from React Native 0.62
// https://github.com/facebook/react-native/blob/0.62-stable/template/android/build.gradle#L27
url "$projectDir/../node_modules/react-native/android"
}
mavenCentral()
}

dependencies {
implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
implementation "androidx.browser:browser:1.0.0"
implementation "androidx.browser:browser:1.2.0"
}

def configureReactNativePom(def pom) {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@
"licenseFilename": "LICENSE",
"readmeFilename": "README.md",
"peerDependencies": {
"react": "^16.8.6",
"react-native": ">=0.60.5 <1.0.x"
"react": "^16.11.0",
"react-native": ">=0.62.2 <1.0.x"
},
"devDependencies": {
"@types/jest": "^24.0.18",
"babel-jest": "^24.9.0",
"faker": "^4.1.0",
"fetch-mock": "^7.3.9",
"husky": "^3.0.5",
"husky": "^4.2.5",
"jest": "^24.9.0",
"jsdoc": "^3.6.3",
"jsdoc-to-markdown": "^5.0.1",
"metro-react-native-babel-preset": "^0.56.0",
"jsdoc": "^3.6.4",
"jsdoc-to-markdown": "^6.0.1",
"metro-react-native-babel-preset": "^0.58.0",
"minami": "^1.2.3",
"prettier": "^1.18.2",
"pretty-quick": "^1.11.1",
"react": "^16.8.6",
"react-native": "^0.60.5",
"react-native": "^0.62.2",
"semver": "^6.3.0"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 1396162

Please sign in to comment.