Skip to content

Commit

Permalink
Fix breaking change w/ Gradle dependencies (#88)
Browse files Browse the repository at this point in the history
This fixes a breaking API change with the Android Gradle plugin, which was deprecated as of version 3.0.0 and later made obsolete.

When adding Gradle dependencies, the `compile` command has been removed and replaced with `implementation`/`api`.

More information:
https://docs.gradle.org/5.4.1/userguide/java_library_plugin.html#sec:java_library_separation
https://developer.android.com/studio/build/dependencies?utm_source=android-studio#dependency_configurations
  • Loading branch information
christophermark authored and mvayngrib committed Aug 1, 2019
1 parent e333144 commit b34d764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
dependencies {
def supportLibVersion = project.hasProperty('supportLibVersion') ? project.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION

compile fileTree(dir: 'libs', include: ['*.jar'])
compile "com.android.support:appcompat-v7:$supportLibVersion"
compile 'com.facebook.react:react-native:+'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation 'com.facebook.react:react-native:+'
}

0 comments on commit b34d764

Please sign in to comment.