diff --git a/AppCenterReactNativeShared/android/build.gradle b/AppCenterReactNativeShared/android/build.gradle index 957b6ff61..eb3a0f03b 100644 --- a/AppCenterReactNativeShared/android/build.gradle +++ b/AppCenterReactNativeShared/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.1.4' + classpath 'com.android.tools.build:gradle:4.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -57,6 +57,13 @@ allprojects { } consumerProguardFiles 'proguard-rules.pro' } + + buildTypes { + release { + buildConfigField 'String', "SDK_NAME", "\"${ext.sdkName}\"" + minifyEnabled false + } + } } task sourcesJar(type: Jar) { @@ -78,8 +85,6 @@ allprojects { release(MavenPublication) { from components.release - artifact javadocJar - artifact sourcesJar pom { diff --git a/AppCenterReactNativeShared/android/gradle/wrapper/gradle-wrapper.properties b/AppCenterReactNativeShared/android/gradle/wrapper/gradle-wrapper.properties index 84337ad35..39ed000ca 100644 --- a/AppCenterReactNativeShared/android/gradle/wrapper/gradle-wrapper.properties +++ b/AppCenterReactNativeShared/android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Fri Dec 22 13:03:39 CET 2023 distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip +zipStoreBase=GRADLE_USER_HOME diff --git a/AppCenterReactNativeShared/android/publish.gradle b/AppCenterReactNativeShared/android/publish.gradle index 387ba61e0..7c658c3ea 100755 --- a/AppCenterReactNativeShared/android/publish.gradle +++ b/AppCenterReactNativeShared/android/publish.gradle @@ -5,6 +5,7 @@ ext { gitUrl = 'https://github.com/Microsoft/appcenter-sdk-react-native.git' groupId = 'com.microsoft.appcenter.reactnative' sdkDescription = 'AppCenter SDK for React Native Android' + sdkName = 'AppCenter SDK React Native' Properties properties = new Properties() File file = rootProject.file('local.properties')