diff --git a/android/build.gradle b/android/build.gradle index f89ebdc..f7f0163 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -7,21 +7,19 @@ buildscript { } dependencies { - // Matches the RN Hello World template - // https://github.com/facebook/react-native/blob/1e8f3b11027fe0a7514b4fc97d0798d3c64bc895/local-cli/templates/HelloWorld/android/build.gradle#L8 - classpath 'com.android.tools.build:gradle:3.5.2' + classpath 'com.android.tools.build:gradle:7.0.4' } } apply plugin: 'com.android.library' -apply plugin: 'maven' +apply plugin: 'maven-publish' android { - compileSdkVersion 29 + compileSdkVersion 34 defaultConfig { - minSdkVersion 23 - targetSdkVersion 29 + minSdkVersion 26 + targetSdkVersion 34 versionCode 1 versionName "1.0" } @@ -82,12 +80,17 @@ def configureReactNativePom(def pom) { } } + +configurations { + customConfig.extendsFrom implementation +} + afterEvaluate { project -> task androidJavadoc(type: Javadoc) { source = android.sourceSets.main.java.srcDirs classpath += files(android.bootClasspath) - classpath += files(project.getConfigurations().getByName('compile').asList()) + classpath += files(project.getConfigurations().getByName('customConfig').asList()) include '**/*.java' } @@ -113,14 +116,4 @@ afterEvaluate { project -> archives androidSourcesJar archives androidJavadocJar } - - task installArchives(type: Upload) { - configuration = configurations.archives - repositories.mavenDeployer { - // Deploy to react-native-event-bridge/maven, ready to publish to npm - repository url: "file://${projectDir}/../android/maven" - - configureReactNativePom pom - } - } } \ No newline at end of file diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 7703b5d..7434f80 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip