From ae183c95cccf1ea93d31deed5c7bd180de40b723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C5=9Far=20=C4=B0=C3=87L=C4=B0?= Date: Mon, 14 Nov 2022 13:41:09 +0300 Subject: [PATCH 1/2] fixed android:attr/lStar not found #214 --- android/build.gradle | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index f7ff4b8e..6d7e29d1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,11 +1,18 @@ apply plugin: 'com.android.library' +ext { + junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1' + androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0' + androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2' + androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0' +} + android { - compileSdkVersion 28 + compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30 defaultConfig { - minSdkVersion 16 - targetSdkVersion 28 + minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21 + targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30 versionCode 1 versionName "1.0" ndk { @@ -24,13 +31,11 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'com.facebook.react:react-native:+' implementation 'com.google.firebase:firebase-messaging:17.6.0' - implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.microsoft.azure:notification-hubs-android-sdk:0.6@aar' + + implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" } repositories { - maven { - url "http://dl.bintray.com/microsoftazuremobile/SDK" - } + mavenCentral() } - From cc58ad902fce2e6b61109d6361c0d00e19a621a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C5=9Far=20=C4=B0=C3=87L=C4=B0?= Date: Mon, 14 Nov 2022 14:46:26 +0300 Subject: [PATCH 2/2] Update build.gradle --- android/build.gradle | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 6d7e29d1..8509df5f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,18 +1,15 @@ apply plugin: 'com.android.library' ext { - junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1' androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0' - androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2' - androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0' } android { - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30 + compileSdkVersion 28 defaultConfig { - minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21 - targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30 + minSdkVersion 16 + targetSdkVersion 28 versionCode 1 versionName "1.0" ndk {