Skip to content

Commit 8ae4648

Browse files
authored
Merge pull request #152 from anggrayudi/release/2.1.0
Release/2.1.0
2 parents 3024a93 + a4b42cd commit 8ae4648

File tree

85 files changed

+9884
-8148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+9884
-8148
lines changed

build.gradle

Lines changed: 0 additions & 84 deletions
This file was deleted.

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
plugins {
3+
alias(libs.plugins.android.application) apply false
4+
alias(libs.plugins.kotlin.android) apply false
5+
alias(libs.plugins.kotlin.compose) apply false
6+
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ android.useAndroidX=true
1919
android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
2121
kotlin.code.style=official
22+
org.jetbrains.dokka.experimental.gradle.pluginMode=V2EnabledWithHelpers
2223
# For publishing:
2324
GROUP=com.anggrayudi
2425
POM_ARTIFACT_ID=storage
25-
VERSION_NAME=2.0.0-SNAPSHOT
26+
VERSION_NAME=2.1.0-SNAPSHOT
2627
RELEASE_SIGNING_ENABLED=false
2728
SONATYPE_AUTOMATIC_RELEASE=true
2829
SONATYPE_HOST=DEFAULT

gradle/libs.versions.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[versions]
2+
kotlin = "2.1.20"
3+
activityCompose = "1.10.1"
4+
coroutines = "1.10.2"
5+
mockito = "3.10.0"
6+
powermock = "2.0.9"
7+
8+
[libraries]
9+
androidx-core = { group = "androidx.core", name = "core-ktx", version = "1.16.0" }
10+
junit = { group = "junit", name = "junit", version = "4.13.2" }
11+
androidx-junit = { group = "androidx.test.ext", name = "junit", version = "1.2.1" }
12+
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version = "3.6.1" }
13+
androidx-lifecycle-runtime = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version = "2.9.1" }
14+
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version = "1.7.1" }
15+
androidx-activity = { group = "androidx.activity", name = "activity-ktx", version.ref = "activityCompose" }
16+
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
17+
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version = "2025.06.00" }
18+
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
19+
androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
20+
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
21+
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
22+
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
23+
androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
24+
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
25+
androidx-multidex = { group = "androidx.multidex", name = "multidex", version = "2.0.1" }
26+
androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version = "2.9.0" }
27+
androidx-datastore = { group = "androidx.datastore", name = "datastore-preferences-android", version = "1.1.7" }
28+
androidx-preference = { group = "androidx.preference", name = "preference-ktx", version = "1.2.1" }
29+
androidx-document-file = { group = "androidx.documentfile", name = "documentfile", version = "1.1.0" }
30+
androidx-fragment = { group = "androidx.fragment", name = "fragment-ktx", version = "1.8.8" }
31+
material-icons-ext = { group = "androidx.compose.material", name = "material-icons-extended", version = "1.7.8" }
32+
33+
material-dialogs-files = { group = "com.afollestad.material-dialogs", name = "files", version = "3.3.0" }
34+
material-progress-bar = { group = "me.zhanghai.android.materialprogressbar", name = "library", version = "1.6.1" }
35+
timber = { group = "com.jakewharton.timber", name = "timber", version = "5.0.1" }
36+
coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
37+
coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "coroutines" }
38+
39+
mockk = { group = "io.mockk", name = "mockk", version = "1.13.17" }
40+
kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlin" }
41+
robolectric = { group = "org.robolectric", name = "robolectric", version = "4.10.3" }
42+
mockito-core = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" }
43+
mockito-inline = { group = "org.mockito", name = "mockito-inline", version.ref = "mockito" }
44+
mockito-all = { group = "org.mockito", name = "mockito-all", version = "1.10.19" }
45+
mockito-kotlin = { group = "com.nhaarman.mockitokotlin2", name = "mockito-kotlin", version = "2.2.0" }
46+
powermock-junit4 = { group = "org.powermock", name = "powermock-module-junit4", version.ref = "powermock" }
47+
powermock-api-mockito = { group = "org.powermock", name = "powermock-api-mockito2", version.ref = "powermock" }
48+
49+
[plugins]
50+
android-application = { id = "com.android.application", version = "8.9.3" }
51+
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
52+
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
53+
ksp = { id = "com.google.devtools.ksp", version = "2.1.20-1.0.32" }
54+
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.22.0" }
55+
dokka = { id = "org.jetbrains.dokka", version = "2.0.0" }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Dec 01 18:57:30 WIB 2020
1+
#Tue Jun 10 19:14:26 WIB 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip

sample/build.gradle

Lines changed: 0 additions & 87 deletions
This file was deleted.

sample/build.gradle.kts

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
plugins {
2+
alias(libs.plugins.android.application)
3+
alias(libs.plugins.kotlin.android)
4+
alias(libs.plugins.kotlin.compose)
5+
alias(libs.plugins.ksp)
6+
}
7+
8+
android {
9+
namespace = "com.anggrayudi.storage.sample"
10+
compileSdk = 35
11+
12+
signingConfigs {
13+
val debugKeystore =
14+
file(
15+
"${System.getProperty("user.home")}${File.separator}.android${File.separator}debug.keystore"
16+
)
17+
getByName("debug") {
18+
keyAlias = "androiddebugkey"
19+
keyPassword = "android"
20+
storePassword = "android"
21+
storeFile = debugKeystore
22+
}
23+
create("release") {
24+
keyAlias = "androiddebugkey"
25+
keyPassword = "android"
26+
storePassword = "android"
27+
storeFile = debugKeystore
28+
}
29+
}
30+
31+
defaultConfig {
32+
applicationId = "com.anggrayudi.storage.sample"
33+
minSdk = 21
34+
targetSdk = 35
35+
versionCode = 1
36+
versionName = rootProject.extra["VERSION_NAME"] as String
37+
multiDexEnabled = true
38+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
39+
}
40+
41+
buildTypes {
42+
debug { signingConfig = signingConfigs.getByName("debug") }
43+
release {
44+
isMinifyEnabled = true
45+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
46+
signingConfig = signingConfigs.getByName("release")
47+
}
48+
}
49+
50+
buildFeatures {
51+
viewBinding = true
52+
compose = true
53+
}
54+
55+
compileOptions {
56+
sourceCompatibility = JavaVersion.VERSION_11
57+
targetCompatibility = JavaVersion.VERSION_11
58+
}
59+
kotlinOptions { jvmTarget = "11" }
60+
61+
flavorDimensions += "libSource"
62+
productFlavors {
63+
create("local") { dimension = "libSource" }
64+
create("maven") {
65+
dimension = "libSource"
66+
configurations.all {
67+
// Check for updates every build
68+
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
69+
}
70+
}
71+
}
72+
73+
applicationVariants.forEach { variant ->
74+
variant.sourceSets.forEach {
75+
it.javaDirectories += files("build/generated/ksp/${variant.name}/kotlin")
76+
}
77+
}
78+
}
79+
80+
dependencies {
81+
implementation(project(":storage"))
82+
// implementation("com.anggrayudi:storage:${rootProject.extra["VERSION_NAME"]}")
83+
84+
implementation(libs.androidx.core)
85+
implementation(libs.androidx.lifecycle.runtime)
86+
implementation(libs.androidx.activity.compose)
87+
implementation(platform(libs.androidx.compose.bom))
88+
implementation(libs.androidx.ui)
89+
implementation(libs.androidx.ui.graphics)
90+
implementation(libs.androidx.ui.tooling.preview)
91+
implementation(libs.androidx.material3)
92+
implementation(libs.androidx.multidex)
93+
implementation(libs.androidx.navigation.compose)
94+
implementation(libs.androidx.datastore)
95+
implementation(libs.androidx.preference)
96+
implementation(libs.material.icons.ext)
97+
98+
implementation(libs.timber)
99+
implementation(libs.coroutines.android)
100+
implementation(libs.material.progress.bar)
101+
implementation(libs.material.dialogs.files)
102+
103+
testImplementation(libs.junit)
104+
testImplementation(libs.coroutines.test)
105+
testImplementation(libs.mockk)
106+
testImplementation(libs.kotlin.test)
107+
108+
androidTestImplementation(libs.androidx.junit)
109+
androidTestImplementation(libs.androidx.espresso.core)
110+
androidTestImplementation(platform(libs.androidx.compose.bom))
111+
androidTestImplementation(libs.androidx.ui.test.junit4)
112+
113+
debugImplementation(libs.androidx.ui.tooling)
114+
debugImplementation(libs.androidx.ui.test.manifest)
115+
}

sample/src/main/java/com/anggrayudi/storage/sample/App.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import timber.log.Timber
99
*/
1010
class App : MultiDexApplication() {
1111

12-
override fun onCreate() {
13-
super.onCreate()
14-
Timber.plant(Timber.DebugTree())
15-
}
16-
}
12+
override fun onCreate() {
13+
super.onCreate()
14+
Timber.plant(Timber.DebugTree())
15+
}
16+
}

0 commit comments

Comments
 (0)