Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support-library version conflict fix #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .gradle/4.1/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/4.1/fileContent/fileContent.lock
Binary file not shown.
Binary file added .gradle/4.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/4.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/4.1/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file added .gradle/4.1/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file added .gradle/4.1/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file added .gradle/4.1/javaCompile/javaCompile.lock
Binary file not shown.
Binary file added .gradle/4.1/javaCompile/taskHistory.bin
Binary file not shown.
Binary file added .gradle/4.1/javaCompile/taskJars.bin
Binary file not shown.
Binary file added .gradle/4.1/taskHistory/fileSnapshots.bin
Binary file not shown.
Binary file added .gradle/4.1/taskHistory/taskHistory.bin
Binary file not shown.
Binary file added .gradle/4.1/taskHistory/taskHistory.lock
Binary file not shown.
Empty file.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Thu Jan 17 13:42:21 PST 2019
gradle.version=4.1
1 change: 1 addition & 0 deletions .gradle/buildOutputCleanup/cache.properties.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

// android support libraries
implementation "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
implementation "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
implementation "com.android.support:design:$rootProject.supportLibraryVersion"
implementation "com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion"
implementation "com.android.support:animated-vector-drawable:$rootProject.supportLibraryVersion"
implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
implementation "com.android.support:recyclerview-v7:$supportLibraryVersion"
implementation "com.android.support:cardview-v7:$supportLibraryVersion"
implementation "com.android.support:design:$supportLibraryVersion"
implementation "com.android.support:support-vector-drawable:$supportLibraryVersion"
implementation "com.android.support:animated-vector-drawable:$supportLibraryVersion"

// font
implementation "uk.co.chrisjenx:calligraphy:$rootProject.calligraphyVersion"
Expand Down
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ext {
buildToolsVersion = '26.0.2'

// App dependencies
supportLibraryVersion = '26.1.0'
supportLibraryVersion = '27.0.2'
gsonVersion = '2.8.0'
calligraphyVersion = '2.2.0'
glideVersion = '3.7.0'
Expand All @@ -70,3 +70,16 @@ ext {
espressoVersion = '2.2.2'
mockitoVersion = '2.7.1'
}

configurations.all {
resolutionStrategy {
eachDependency { details ->
// Force all of the primary support libraries to use the same version.
if (details.requested.group == 'com.android.support'
&& details.requested.name != 'multidex'
&& details.requested.name != 'multidex-instrumentation') {
details.useVersion supportLibraryVersion
}
}
}
}