Skip to content

Commit

Permalink
fix androidX legacy dependencies...
Browse files Browse the repository at this point in the history
this is a hacky way to detect when to use the legacy dependecies
from androidX.
  • Loading branch information
diego committed Jul 18, 2019
1 parent 85a7858 commit d6c3a4b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ dependencies {

compileOnly "com.facebook.react:react-native:+"
implementation "com.google.android.libraries.places:places:1.1.0"
implementation "com.android.support:appcompat-v7:${supportLibVersion}"
implementation "com.android.support:support-v4:${supportLibVersion}"
implementation "com.google.code.findbugs:jsr305:3.0.2"

if (rootProject.findProperty("android.useAndroidX")) {
implementation "androidx.appcompat:appcompat:1.0.2"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
} else {
implementation "com.android.support:appcompat-v7:${supportLibVersion}"
implementation "com.android.support:support-v4:${supportLibVersion}"
}
}

0 comments on commit d6c3a4b

Please sign in to comment.