fix gradle builds and lock lib to RN 0.72.3

This commit is contained in:
Siddarth Kumar 2023-08-21 15:43:44 +05:30
parent b324d17d88
commit b042c84da3
No known key found for this signature in database
GPG Key ID: F84DB2CA5207F534
3 changed files with 11 additions and 7 deletions

View File

@ -5,20 +5,21 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:7.4.0'
}
}
apply plugin: 'com.android.library'
def REACT_NATIVE_VERSION = '0.72.3'
android {
compileSdkVersion rootProject.properties.get('compileSdkVersion', 26)
buildToolsVersion rootProject.properties.get('buildToolsVersion', '26.0.3')
compileSdkVersion rootProject.properties.get('compileSdkVersion', 33)
buildToolsVersion rootProject.properties.get('buildToolsVersion', '30.0.3')
defaultConfig {
minSdkVersion 16
targetSdkVersion rootProject.properties.get('targetSdkVersion', 26)
minSdkVersion 21
targetSdkVersion rootProject.properties.get('targetSdkVersion', 31)
versionCode 1
versionName "1.0"
}
@ -31,11 +32,13 @@ repositories {
maven { url "https://jitpack.io" }
jcenter()
mavenCentral()
google()
}
dependencies {
implementation 'com.facebook.react:react-native:+'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.facebook.react:react-android:0.72.3"
implementation 'com.android.support:appcompat-v7:27.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
}

View File

@ -0,0 +1 @@
android.useAndroidX=true

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists