(android) Android 8 support

This commit is contained in:
Ivan Pusic 2017-10-21 22:13:09 +02:00
parent 08077b2c83
commit b47232befa
4 changed files with 11 additions and 12 deletions

View File

@ -1,12 +1,12 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdkVersion 25 compileSdkVersion 26
buildToolsVersion "25.0.3" buildToolsVersion "26.0.1"
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 25 targetSdkVersion 26
versionCode 1 versionCode 1
} }
lintOptions { lintOptions {
@ -18,4 +18,5 @@ dependencies {
compile 'com.facebook.react:react-native:+' compile 'com.facebook.react:react-native:+'
compile 'com.yalantis:ucrop:2.2.0-native' compile 'com.yalantis:ucrop:2.2.0-native'
compile 'id.zelory:compressor:2.1.0' compile 'id.zelory:compressor:2.1.0'
compile 'com.android.support:support-annotations:26.0.1'
} }

View File

@ -83,13 +83,13 @@ def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false def enableProguardInReleaseBuilds = false
android { android {
compileSdkVersion 25 compileSdkVersion 26
buildToolsVersion "23.0.3" buildToolsVersion "26.0.1"
defaultConfig { defaultConfig {
applicationId "com.example" applicationId "com.example"
minSdkVersion 18 minSdkVersion 18
targetSdkVersion 25 targetSdkVersion 26
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
ndk { ndk {
@ -129,7 +129,7 @@ dependencies {
compile project(':react-native-video') compile project(':react-native-video')
compile project(':react-native-image-crop-picker') compile project(':react-native-image-crop-picker')
compile fileTree(dir: "libs", include: ["*.jar"]) compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:25.3.1" compile "com.android.support:appcompat-v7:26.0.1"
compile "com.facebook.react:react-native:+" compile "com.facebook.react:react-native:+"
} }

View File

@ -16,9 +16,7 @@ allprojects {
repositories { repositories {
mavenLocal() mavenLocal()
jcenter() jcenter()
maven { maven { url "$rootDir/../node_modules/react-native/android" }
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm maven { url 'https://maven.google.com' }
url "$rootDir/../node_modules/react-native/android"
}
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "react-native-image-crop-picker", "name": "react-native-image-crop-picker",
"version": "0.17.3", "version": "0.18.0",
"description": "Select single or multiple images, with cropping option", "description": "Select single or multiple images, with cropping option",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {