diff --git a/build.gradle b/build.gradle
index d794233..c300e0e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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.6.0"
+ ext.kotlin_version="1.8.22"
repositories {
google()
mavenCentral()
@@ -10,9 +10,8 @@ buildscript {
}
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.0.0'
+ classpath 'com.android.tools.build:gradle:8.13.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
diff --git a/filepicker/build.gradle b/filepicker/build.gradle
index 3c53526..b600a48 100644
--- a/filepicker/build.gradle
+++ b/filepicker/build.gradle
@@ -7,12 +7,12 @@ apply plugin: 'maven-publish'
group='com.github.rosuH'
android {
+ namespace 'me.rosuh.filepicker'
defaultConfig {
- minSdkVersion 16
- compileSdk 33
- targetSdkVersion 33
+ minSdkVersion 21
+ compileSdk 35
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
@@ -28,8 +28,8 @@ android {
}
compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
+ sourceCompatibility JavaVersion.VERSION_17
+ targetCompatibility JavaVersion.VERSION_17
}
}
@@ -49,18 +49,17 @@ afterEvaluate {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
- compileOnly 'com.squareup.picasso:picasso:2.5.2'
- compileOnly ("com.github.bumptech.glide:glide:4.9.0") {
+ compileOnly 'com.squareup.picasso:picasso:2.71828'
+ compileOnly ('com.github.bumptech.glide:glide:5.0.5') {
exclude group: "com.android.support"
}
- def kotlin_version = '1.6.0'
+ def kotlin_version = '1.8.22'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.appcompat:appcompat:1.3.0'
- implementation 'androidx.recyclerview:recyclerview:1.2.1'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
+ implementation 'androidx.appcompat:appcompat:1.7.1'
+ implementation 'androidx.recyclerview:recyclerview:1.4.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.5'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
+ testImplementation 'junit:junit:4.13.2'
+ // Removed androidTest dependencies to avoid minSdk conflicts in library module
}
diff --git a/filepicker/src/main/java/me/rosuh/filepicker/engine/PicassoEngine.kt b/filepicker/src/main/java/me/rosuh/filepicker/engine/PicassoEngine.kt
index 60f9365..0340a97 100644
--- a/filepicker/src/main/java/me/rosuh/filepicker/engine/PicassoEngine.kt
+++ b/filepicker/src/main/java/me/rosuh/filepicker/engine/PicassoEngine.kt
@@ -18,12 +18,12 @@ class PicassoEngine : ImageEngine {
placeholder: Int
) {
if (url?.startsWith("http") == true) {
- Picasso.with(context)
+ Picasso.get()
.load(url)
.placeholder(placeholder)
.into(imageView)
} else {
- Picasso.with(context)
+ Picasso.get()
.load(File(url))
.placeholder(placeholder)
.into(imageView)
diff --git a/filepicker/src/main/res/values-v21/styles.xml b/filepicker/src/main/res/values-v21/styles.xml
deleted file mode 100644
index a4d8841..0000000
--- a/filepicker/src/main/res/values-v21/styles.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/filepicker/src/main/res/values/styles.xml b/filepicker/src/main/res/values/styles.xml
index d35c344..b776eb1 100644
--- a/filepicker/src/main/res/values/styles.xml
+++ b/filepicker/src/main/res/values/styles.xml
@@ -1,6 +1,11 @@
-
-
-
+
-
-