Skip to content

Commit

Permalink
[new] compileSdk 33
Browse files Browse the repository at this point in the history
  • Loading branch information
qqnp1100 committed Aug 17, 2023
1 parent 59508fe commit 6690f2d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
9 changes: 5 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdk 31
namespace ="com.example.ponycui_home.svgaplayer"
compileSdk 33
defaultConfig {
applicationId "com.example.ponycui_home.svgaplayer"
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
Expand All @@ -25,8 +26,8 @@ android {
exclude 'META-INF/MANIFEST.MF'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
classpath 'com.android.tools.build:gradle:8.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
13 changes: 7 additions & 6 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ apply plugin: 'kotlin-android'


android {
compileSdk 31
namespace "com.opensource.svgaplayer"
compileSdk 33
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 33
}
compileOptions {
// kotlinOptions.freeCompilerArgs += ['-module-name', "com.opensource.svgaplayer"]
Expand All @@ -18,8 +19,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
packagingOptions {
exclude 'META-INF/ASL2.0'
Expand All @@ -33,6 +34,6 @@ android {


dependencies {
implementation 'com.squareup.wire:wire-runtime:4.4.1'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.squareup.wire:wire-runtime:4.8.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
}
10 changes: 5 additions & 5 deletions library/src/main/java/com/opensource/svgaplayer/SVGAImageView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -301,19 +301,19 @@ open class SVGAImageView @JvmOverloads constructor(
private class AnimatorListener(view: SVGAImageView) : Animator.AnimatorListener {
private val weakReference = WeakReference<SVGAImageView>(view)

override fun onAnimationRepeat(animation: Animator?) {
override fun onAnimationRepeat(animation: Animator) {
weakReference.get()?.callback?.onRepeat()
}

override fun onAnimationEnd(animation: Animator?) {
override fun onAnimationEnd(animation: Animator) {
weakReference.get()?.onAnimationEnd(animation)
}

override fun onAnimationCancel(animation: Animator?) {
override fun onAnimationCancel(animation: Animator) {
weakReference.get()?.isAnimating = false
}

override fun onAnimationStart(animation: Animator?) {
override fun onAnimationStart(animation: Animator) {
weakReference.get()?.isAnimating = true
}
} // end of AnimatorListener
Expand All @@ -322,7 +322,7 @@ open class SVGAImageView @JvmOverloads constructor(
private class AnimatorUpdateListener(view: SVGAImageView) : ValueAnimator.AnimatorUpdateListener {
private val weakReference = WeakReference<SVGAImageView>(view)

override fun onAnimationUpdate(animation: ValueAnimator?) {
override fun onAnimationUpdate(animation: ValueAnimator) {
weakReference.get()?.onAnimatorUpdate(animation)
}
} // end of AnimatorUpdateListener
Expand Down

0 comments on commit 6690f2d

Please sign in to comment.