Skip to content

Commit

Permalink
fix: downgrade java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
SherlockGougou committed Jan 13, 2025
1 parent 009a2e0 commit 186384a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ https://github.com/user-attachments/assets/070caa63-8e9f-4b11-9240-4cb56440d3c2
}
```
#### Step 2. 在你app的build.gradle中添加依赖:
当前最新版本为:```androidx-8.1.2```
当前最新版本为:```androidx-8.1.3```
```
dependencies {
// 本框架
implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-8.1.2'
implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-8.1.3'
// glide
implementation 'com.github.bumptech.glide:glide:4.16.0'
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.9.20'
ext.kotlin_version = '1.7.10'

repositories {
mavenLocal()
Expand All @@ -10,7 +10,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.2'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Oct 16 14:46:01 CST 2020
#Mon Jan 13 11:21:01 CST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
5 changes: 2 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ apply plugin: 'kotlin-android'
android {
namespace 'cc.shinichi.library'
compileSdkVersion 34
buildToolsVersion '34.0.0'
defaultConfig {
minSdkVersion 24
targetSdkVersion 34
targetSdkVersion 33
multiDexEnabled true
}
buildTypes {
Expand All @@ -27,7 +26,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.exifinterface:exifinterface:1.3.5'
implementation "androidx.core:core-ktx:1.7.0"
implementation "androidx.core:core-ktx:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

// glide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ class ImagePreviewActivity : AppCompatActivity(), Handler.Callback, View.OnClick
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
overrideActivityTransition(OVERRIDE_TRANSITION_OPEN, R.anim.fade_in, R.anim.fade_out)
} else {
overridePendingTransition(R.anim.fade_in, R.anim.fade_out)
}
overridePendingTransition(R.anim.fade_in, R.anim.fade_out)

parentView = View.inflate(this, ImagePreview.instance.previewLayoutResId, null)
setContentView(parentView)
Expand Down
11 changes: 5 additions & 6 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ android {
}
namespace 'cc.shinichi.bigimageviewpager'
compileSdkVersion 34
buildToolsVersion '34.0.0'
defaultConfig {
applicationId "cc.shinichi.bigimageviewpager"
minSdkVersion 24
targetSdkVersion 34
versionCode 812
versionName "androidx-8.1.2"
targetSdkVersion 33
versionCode 813
versionName "androidx-8.1.3"
signingConfig signingConfigs.debug
multiDexEnabled true
}
Expand Down Expand Up @@ -61,7 +60,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "androidx.core:core-ktx:1.7.0"
implementation "androidx.core:core-ktx:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

// PictureSelector basic (Necessary)
Expand All @@ -79,6 +78,6 @@ dependencies {
implementation "androidx.media3:media3-ui:1.4.1"

// library
// implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-8.1.2'
// implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-8.1.3'
implementation project(':library')
}

0 comments on commit 186384a

Please sign in to comment.