diff --git a/android/build.gradle b/android/build.gradle index 40165ac..ece3a6f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,12 +1,16 @@ apply plugin: 'com.android.library' +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} + android { - compileSdkVersion 25 - buildToolsVersion "25.0.2" + compileSdkVersion safeExtGet('compileSdkVersion', 26) + buildToolsVersion safeExtGet('buildToolsVersion', "25.0.2") defaultConfig { - minSdkVersion 16 - targetSdkVersion 22 + minSdkVersion safeExtGet('minSdkVersion', 16) + targetSdkVersion safeExtGet('targetSdkVersion', 26) versionCode 1 versionName "1.0" ndk { @@ -16,5 +20,5 @@ android { } dependencies { - compile 'com.facebook.react:react-native:+' + implementation 'com.facebook.react:react-native:+' } diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..3e63c37 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,22 @@ +{ + "name": "react-native-i18n", + "version": "2.0.11", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "react-native-i18n", + "version": "2.0.11", + "license": "MIT", + "dependencies": { + "i18n-js": "^3.0.3" + } + }, + "node_modules/i18n-js": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/i18n-js/-/i18n-js-3.9.2.tgz", + "integrity": "sha512-+Gm8h5HL0emzKhRx2avMKX+nKiVPXeaOZm7Euf2/pbbFcLQoJ3zZYiUykAzoRasijCoWos2Kl1tslmScTgAQKw==", + "license": "MIT" + } + } +}