Skip to content

Commit a04d5d3

Browse files
authored
Merge pull request #20 from JunkFood02/fork
Bump up version to v0.0.8
2 parents 6537f6c + 30bffd0 commit a04d5d3

Some content is hidden

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

42 files changed

+1164
-707
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/.idea/navEditor.xml
99
/.idea/assetWizardSettings.xml
1010
/.idea/deploymentTargetDropDown.xml
11+
/.idea/shelf
1112
.DS_Store
1213
/build
1314
/captures

.idea/gradle.xml

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

.idea/misc.xml

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

app/build.gradle

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

app/build.gradle.kts

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
import java.io.FileInputStream
2+
import java.util.*
3+
4+
plugins {
5+
id("com.android.application")
6+
id("kotlin-android")
7+
id("kotlin-kapt")
8+
id("org.jetbrains.kotlin.android")
9+
}
10+
apply(plugin = "dagger.hilt.android.plugin")
11+
12+
val versionMajor = 0
13+
val versionMinor = 0
14+
val versionPatch = 8
15+
val versionBuild = 5
16+
val isStable = true
17+
18+
val composeVersion = "1.2.0-beta03"
19+
val lifecycleVersion = "2.5.0-rc01"
20+
val navigationVersion = "2.5.0-rc01"
21+
val roomVersion = "2.4.2"
22+
val accompanistVersion = "0.24.7-alpha"
23+
val kotlinVersion = "1.6.21"
24+
val hiltVersion = "2.42"
25+
val composeMd3Version = "1.0.0-alpha13"
26+
27+
val keystorePropertiesFile = rootProject.file("keystore.properties")
28+
val keystoreProperties = Properties()
29+
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
30+
31+
android {
32+
signingConfigs {
33+
all {
34+
keyAlias = keystoreProperties["keyAlias"].toString()
35+
keyPassword = keystoreProperties["keyPassword"].toString()
36+
storeFile = file(keystoreProperties["storeFile"]!!)
37+
storePassword = keystoreProperties["storePassword"].toString()
38+
}
39+
}
40+
// compileSdkPreview = "Tiramisu"
41+
compileSdk = 32
42+
defaultConfig {
43+
applicationId = "com.junkfood.seal"
44+
minSdk = 26
45+
// targetSdkPreview "Tiramisu"
46+
targetSdk = 32
47+
versionCode = versionMajor * 1000 + versionMinor * 100 + versionPatch * 10 + versionBuild
48+
if (isStable) {
49+
versionName = "${versionMajor}.${versionMinor}.${versionPatch}"
50+
} else {
51+
versionName = "${versionMajor}.${versionMinor}.${versionPatch}-alpha0${versionBuild}"
52+
}
53+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
54+
kapt {
55+
arguments {
56+
arg("room.schemaLocation", "$projectDir/schemas")
57+
}
58+
}
59+
}
60+
buildTypes {
61+
release {
62+
isMinifyEnabled = true
63+
proguardFiles(
64+
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
65+
)
66+
}
67+
}
68+
compileOptions {
69+
sourceCompatibility = JavaVersion.VERSION_1_8
70+
targetCompatibility = JavaVersion.VERSION_1_8
71+
}
72+
kotlinOptions {
73+
jvmTarget = "1.8"
74+
}
75+
buildFeatures {
76+
compose = true
77+
}
78+
splits {
79+
abi {
80+
isEnable = !project.hasProperty("noSplits")
81+
reset()
82+
include("x86_64", "arm64-v8a")
83+
isUniversalApk = false
84+
}
85+
}
86+
87+
applicationVariants.all {
88+
outputs.all {
89+
(this as com.android.build.gradle.internal.api.BaseVariantOutputImpl).outputFileName =
90+
"Seal-${defaultConfig.versionName}-${name}.apk"
91+
}
92+
}
93+
94+
kotlinOptions {
95+
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
96+
}
97+
composeOptions {
98+
kotlinCompilerExtensionVersion = composeVersion
99+
}
100+
packagingOptions {
101+
resources {
102+
excludes += "/META-INF/{AL2.0,LGPL2.1}"
103+
}
104+
jniLibs.useLegacyPackaging = true
105+
}
106+
namespace = "com.junkfood.seal"
107+
}
108+
109+
dependencies {
110+
111+
112+
implementation("androidx.core:core-ktx:1.8.0")
113+
implementation("androidx.appcompat:appcompat:1.6.0-alpha04")
114+
implementation("com.google.android.material:material:1.7.0-alpha02")
115+
implementation("androidx.activity:activity-compose:1.4.0")
116+
117+
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion")
118+
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
119+
120+
implementation("androidx.navigation:navigation-fragment-ktx:$navigationVersion")
121+
implementation("androidx.navigation:navigation-ui-ktx:$navigationVersion")
122+
123+
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleVersion")
124+
implementation("androidx.compose.ui:ui:$composeVersion")
125+
implementation("androidx.compose.material3:material3:$composeMd3Version")
126+
implementation("androidx.compose.material:material:$composeVersion")
127+
implementation("androidx.compose.ui:ui-tooling-preview:$composeVersion")
128+
implementation("androidx.compose.material:material-icons-extended:$composeVersion")
129+
implementation("androidx.navigation:navigation-compose:$navigationVersion")
130+
implementation("androidx.compose.animation:animation-graphics:$composeVersion")
131+
implementation("androidx.compose.foundation:foundation:$composeVersion")
132+
implementation("com.google.accompanist:accompanist-navigation-animation:$accompanistVersion")
133+
implementation("com.google.accompanist:accompanist-permissions:$accompanistVersion")
134+
implementation("com.google.accompanist:accompanist-systemuicontroller:$accompanistVersion")
135+
implementation ("com.google.accompanist:accompanist-flowlayout:$accompanistVersion")
136+
137+
implementation("io.coil-kt:coil-compose:2.0.0-rc03")
138+
139+
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
140+
kapt("androidx.hilt:hilt-compiler:1.0.0")
141+
implementation("com.google.dagger:hilt-android:$hiltVersion")
142+
kapt("com.google.dagger:hilt-android-compiler:$hiltVersion")
143+
144+
implementation("androidx.room:room-runtime:$roomVersion")
145+
implementation("androidx.room:room-ktx:$roomVersion")
146+
kapt("androidx.room:room-compiler:$roomVersion")
147+
148+
// implementation "com.github.yausername.youtubedl-android:library:-SNAPSHOT"
149+
// implementation "com.github.yausername.youtubedl-android:ffmpeg:-SNAPSHOT"
150+
implementation("com.github.JunkFood02.youtubedl-android:ffmpeg:0.13.2")
151+
implementation("com.github.JunkFood02.youtubedl-android:library:0.13.2")
152+
153+
implementation("com.tencent:mmkv:1.2.13")
154+
implementation("androidx.datastore:datastore-preferences:1.0.0")
155+
156+
157+
testImplementation("junit:junit:4.13.2")
158+
androidTestImplementation("androidx.test.ext:junit:1.1.3")
159+
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
160+
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion")
161+
debugImplementation("androidx.compose.ui:ui-tooling:$composeVersion")
162+
implementation("androidx.core:core-ktx:+")
163+
}

app/proguard-rules.pro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
23+
#noinspection ShrinkerUnresolvedReference
24+
-keep class com.yausername.** { *; }

0 commit comments

Comments
 (0)