Skip to content

Commit 1e5aa5e

Browse files
authored
fix: pick up correct android build tools version (#509)
* fix: pick up correct android build tools version * chore: simplify deploy
1 parent 4074be8 commit 1e5aa5e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ def safeExtGet(prop, fallback) {
1818
}
1919

2020
android {
21-
compileSdkVersion safeExtGet('DocumentPicker_compileSdkVersion', 29)
22-
buildToolsVersion safeExtGet('DocumentPicker_buildToolsVersion', '29.0.2')
21+
compileSdkVersion safeExtGet('compileSdkVersion', 29)
22+
buildToolsVersion safeExtGet('buildToolsVersion', '29.0.2')
2323
defaultConfig {
24-
minSdkVersion safeExtGet('DocumentPicker_minSdkVersion', 21)
25-
targetSdkVersion safeExtGet('DocumentPicker_targetSdkVersion', 29)
24+
minSdkVersion safeExtGet('minSdkVersion', 21)
25+
targetSdkVersion safeExtGet('targetSdkVersion', 29)
2626
versionCode 1
2727
versionName "1.0"
2828

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"typescript": "tsc --noEmit",
2828
"lint": "eslint \"**/*.{js,ts,tsx}\"",
2929
"prepare": "bob build",
30-
"release": "release-it",
30+
"release": "yarn prepare && release-it",
3131
"example": "yarn --cwd example",
3232
"pods": "cd example && pod-install --quiet",
3333
"bootstrap": "yarn example && yarn && yarn pods"
@@ -79,6 +79,11 @@
7979
"react-native": "*",
8080
"react-native-windows": "*"
8181
},
82+
"peerDependenciesMeta": {
83+
"react-native-windows": {
84+
"optional": true
85+
}
86+
},
8287
"jest": {
8388
"preset": "react-native",
8489
"modulePathIgnorePatterns": [

0 commit comments

Comments
 (0)