Skip to content

Commit f3045a5

Browse files
committed
Small fixes and other improvements. Added List sample
1 parent fd74da2 commit f3045a5

File tree

27 files changed

+306
-67
lines changed

27 files changed

+306
-67
lines changed

.idea/deploymentTargetDropDown.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetSelector.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

100755100644
Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/migrations.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

100755100644
Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33

44
android {
5-
compileSdkVersion 33
5+
compileSdkVersion 34
66
buildToolsVersion "30.0.3"
77

88
defaultConfig {
99
applicationId "com.goodayapps.avatarview"
1010
minSdkVersion 21
11-
targetSdkVersion 33
11+
targetSdkVersion 34
1212
versionCode 1
1313
versionName "1.0"
1414

@@ -37,13 +37,20 @@ android {
3737

3838
dependencies {
3939
implementation fileTree(dir: "libs", include: ["*.jar"])
40-
implementation 'androidx.core:core-ktx:1.10.0'
40+
implementation 'androidx.core:core-ktx:1.12.0'
4141
implementation 'androidx.appcompat:appcompat:1.6.1'
4242
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
43+
4344
//Coil
44-
api("io.coil-kt:coil:2.3.0")
45-
api("io.coil-kt:coil-gif:2.3.0")
46-
api("io.coil-kt:coil-svg:2.3.0")
45+
api("io.coil-kt:coil:2.4.0")
46+
api("io.coil-kt:coil-gif:2.4.0")
47+
api("io.coil-kt:coil-svg:2.4.0")
48+
49+
//RecyclerView
50+
implementation('androidx.recyclerview:recyclerview:1.3.2')
4751

4852
implementation(project(':avatar-view'))
49-
}
53+
54+
// Debug
55+
debugImplementation 'com.squareup.leakcanary:leakcanary-android:3.0-alpha-1'
56+
}

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<category android:name="android.intent.category.LAUNCHER" />
2222
</intent-filter>
2323
</activity>
24+
25+
<activity android:name=".list_screen.ListActivity" />
2426
</application>
2527

26-
</manifest>
28+
</manifest>

app/src/main/java/com/goodayapps/avatarview/App.kt

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import coil.Coil
66
import coil.ImageLoader
77
import coil.decode.GifDecoder
88
import coil.decode.ImageDecoderDecoder
9+
import coil.decode.SvgDecoder
910
import coil.request.CachePolicy
1011
import coil.util.DebugLogger
1112

@@ -23,6 +24,7 @@ class App : Application() {
2324
} else {
2425
add(GifDecoder.Factory())
2526
}
27+
add(SvgDecoder.Factory())
2628
}
2729
.diskCachePolicy(CachePolicy.DISABLED)
2830
.logger(DebugLogger())

app/src/main/java/com/goodayapps/avatarview/CoilExt.kt

100644100755
File mode changed.

0 commit comments

Comments
 (0)