From 50bdfe03a861516edcf0cceacefcdb677d57ce63 Mon Sep 17 00:00:00 2001 From: Colin Carter Date: Thu, 21 Nov 2024 16:02:53 +0000 Subject: [PATCH] Use projects tool versions in build.gradle --- android/build.gradle | 14 +++++++++----- package-lock.json | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 package-lock.json 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" + } + } +}