1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00

upgrade Gradle plugin to 4.0

restrict the Jitpack Repository to the PhotoView dependency
This commit is contained in:
Christophe Beyls 2020-05-29 12:07:58 +02:00
parent 4b20c0b3a4
commit b2a93a2165
3 changed files with 10 additions and 5 deletions

View file

@ -73,7 +73,7 @@ class TracksFragment : Fragment(R.layout.fragment_tracks), RecycledViewPoolProvi
} }
} }
viewLifecycleOwner.lifecycle.addObserver(LifecycleEventObserver { source, event -> viewLifecycleOwner.lifecycle.addObserver(LifecycleEventObserver { _, event ->
if (event == Lifecycle.Event.ON_STOP) { if (event == Lifecycle.Event.ON_STOP) {
// Save the current page to preferences if it has changed // Save the current page to preferences if it has changed
val page = holder.pager.currentItem val page = holder.pager.currentItem

View file

@ -6,15 +6,20 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.6.3' classpath 'com.android.tools.build:gradle:4.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }
allprojects { allprojects {
repositories { repositories {
maven {
url "https://jitpack.io"
content {
includeGroup "com.github.chrisbanes"
}
}
google() google()
jcenter() jcenter()
maven { url "https://jitpack.io" }
} }
} }

View file

@ -1,6 +1,6 @@
#Tue Feb 25 01:00:13 CET 2020 #Fri May 29 12:01:28 CEST 2020
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip