Skip to content

Commit

Permalink
fix maven compile error (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mesutaltuncu authored Jun 13, 2022
1 parent 6ebc149 commit 5d9614d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def safeExtGet(prop, fallback) {
}

apply plugin: 'com.android.library'
apply plugin: 'maven'

buildscript {
// The Android Gradle plugin is only required when opening the android folder stand-alone.
Expand All @@ -40,7 +39,6 @@ buildscript {
}

apply plugin: 'com.android.library'
apply plugin: 'maven'

android {
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
Expand Down Expand Up @@ -142,10 +140,5 @@ afterEvaluate { project ->

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
}
}
}

1 comment on commit 5d9614d

@ryandever
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace line #112 to:

project.getConfigurations().getByName('implementation').setCanBeResolved(true)
classpath += files(project.getConfigurations().getByName('implementation').asList())

Please sign in to comment.