Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	app/build.gradle
#	build.gradle
  • Loading branch information
iielse committed Dec 2, 2021
2 parents f43d421 + 0bb91c0 commit 124f3d7
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 32 deletions.
25 changes: 10 additions & 15 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ android {
versionName rootProject.ext.versionName
applicationId "com.github.iielse.imageviewer.demo"
}
buildFeatures {
viewBinding true
}
buildFeatures.viewBinding = true
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "1.8"
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
Expand All @@ -32,23 +27,23 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.activity:activity-ktx:1.2.4'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
//noinspection GradleDependency
implementation 'androidx.paging:paging-runtime-ktx:2.1.2'
implementation 'androidx.activity:activity-ktx:1.4.0'

implementation 'com.github.bumptech.glide:glide:4.12.0'
kapt 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.github.chrisbanes:PhotoView:2.2.0'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
implementation 'com.google.android.exoplayer:exoplayer:2.16.1'
implementation 'com.google.android.exoplayer:exoplayer:2.15.0'

// implementation project(':imageviewer')
implementation 'com.github.iielse:imageviewer:2.1.10'
implementation project(':imageviewer')
// implementation 'com.github.iielse:imageviewer:2.1.11'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
}
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ buildscript {
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31'
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
Expand All @@ -29,10 +29,10 @@ task clean(type: Delete) {


ext {
compileSdkVersion= 31
compileSdkVersion= 30
buildToolsVersion= "30.0.3"
minSdkVersion = 21
targetSdkVersion = 31
versionCode = 220
versionName = "2.1.10"
targetSdkVersion = 30
versionCode = 221
versionName = "2.1.11"
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.configureondemand=true
org.gradle.caching=true
android.enableJetifier=true
android.enableJetifier=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Fri May 14 14:25:04 CST 2021
#Wed Dec 01 19:34:04 CST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
Expand Down
12 changes: 5 additions & 7 deletions imageviewer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ android {
versionName rootProject.ext.versionName
}

buildFeatures {
viewBinding true
}
buildFeatures.viewBinding = true

kotlinOptions {
jvmTarget = "1.8"
Expand All @@ -30,15 +28,15 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.transition:transition:1.4.1'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
//noinspection GradleDependency
implementation 'androidx.paging:paging-runtime-ktx:2.1.2'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'com.google.android.exoplayer:exoplayer:2.16.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'com.google.android.exoplayer:exoplayer:2.15.0'
implementation 'com.github.chrisbanes:PhotoView:2.2.0'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.github.iielse.imageviewer.utils.Config
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.MediaItem
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.SimpleExoPlayer
import com.google.android.exoplayer2.analytics.AnalyticsListener
import com.google.android.exoplayer2.util.EventLogger
import com.google.android.exoplayer2.video.VideoSize
Expand All @@ -26,7 +27,7 @@ open class ExoVideoView @JvmOverloads constructor(
}

private val logger by lazy { EventLogger(null) }
private var exoPlayer: ExoPlayer? = null
private var exoPlayer: SimpleExoPlayer? = null
private var videoRenderedCallback: VideoRenderedListener? = null
private val listeners = mutableListOf<AnalyticsListener>()
private var playUrl: String? = null
Expand Down Expand Up @@ -96,7 +97,7 @@ open class ExoVideoView @JvmOverloads constructor(

private fun newExoPlayer(): ExoPlayer {
release()
return ExoPlayer.Builder(context).build().also {
return SimpleExoPlayer.Builder(context).build().also {
it.setVideoTextureView(this)
it.addListener(videoListener)
if (Config.DEBUG) it.addAnalyticsListener(logger)
Expand Down

0 comments on commit 124f3d7

Please sign in to comment.