Skip to content

Commit

Permalink
Gradle 7 Compatibility
Browse files Browse the repository at this point in the history
Expose analytics properties as public and replace references to jcenter
with mavenCentral
  • Loading branch information
takameyer committed Oct 12, 2021
1 parent 6feff82 commit 9d2b136
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions react-native/android/analytics.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import java.security.NoSuchAlgorithmException;
// - An anonymized MAC address and bundle ID to aggregate the other information on.

class SendAnalyticsTask extends DefaultTask {
String applicationId = 'UNKNOWN'
String version = 'UNKNOWN'
public String applicationId = 'UNKNOWN'
public String version = 'UNKNOWN'

@TaskAction
def sendAnalytics() {
Expand Down
4 changes: 2 additions & 2 deletions react-native/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
Expand All @@ -11,7 +11,7 @@ buildscript {
allprojects {
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$projectDir/../../react-native/android"
Expand Down

0 comments on commit 9d2b136

Please sign in to comment.