Skip to content

Commit 9c3a819

Browse files
authored
0.5.3 (#104)
* Debloat Patch 1 * Bump version * Update * Redesign * Patch paddings
1 parent a645661 commit 9c3a819

File tree

139 files changed

+394
-2308
lines changed

Some content is hidden

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

139 files changed

+394
-2308
lines changed

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
[![Google Play](docs/assets/google_play.png)](https://play.google.com/store/apps/details?id=com.shifthackz.aisdv1.app)
1010
[![F-Droid](docs/assets/fdroid.png)](https://f-droid.org/packages/com.shifthackz.aisdv1.app.foss)
11-
[![Izzy On Droid](docs/assets/izzy_on_droid.png)](https://apt.izzysoft.de/fdroid/index/apk/com.shifthackz.aisdv1.app.foss?repo=main)
1211

1312
Stable Diffusion AI is an easy-to-use app that lets you quickly generate images from text or other images with just a few clicks. With this app, you can communicate with your own server and generate high-quality images in seconds.
1413

@@ -60,16 +59,6 @@ If for some reason you have no ability to run your server instance, you can togg
6059

6160
AI Horde requires to use API KEY, this mobile app alows to use either default API KEY (which is "0000000000"), or type your own. You can sign up and get your own AI Horde API KEY [here](https://stablehorde.net/register).
6261

63-
### Option 3: Use SDAI Cloud
64-
65-
**Disclaimer: This option is only available in [GooglePlay](https://play.google.com/store/apps/details?id=com.shifthackz.aisdv1.app) app version.**
66-
67-
**Google Play app version includes some proprietary libraries (like Firebase and Google AdMob) to monetize this option. This functionality is NOT a part of the FOSS build and will be never included in FOSS build**
68-
69-
SDAI Cloud is the AUTOMATIC1111 hosted by author of this app as an option for users that for some reason are not able to run or host their own AUTOMATIC1111 instance.
70-
71-
Hosting this instance costs some money, and as this project is non-profitable the usage of SDAI Cloud is monetized by ads. Also the SDAI Cloud may not be available full-time, as this is running on the app author's own bare-metal machine which is hosted in Ukraine, as this area now is a warzone electricity and network downtimes can happen sometimes.
72-
7362
## Supported languages
7463

7564
App uses the language provided by OS default settings.
@@ -86,9 +75,8 @@ Any contributions to the translations are welcome.
8675

8776
## Donate
8877

89-
Main **foss** flavor of the app is open source, and you are welcome to use it for free.
90-
Only **play** flavor contains small ad-banner at the bottom navigation.
78+
This software is open source, provided with no warranty, and you are welcome to use it for free.
9179

92-
The donation is optional, if you'd like to say thanks and show a little support, here is the button:
80+
In case you find this software valuable, and you'd like to say thanks and show a little support, here is the button:
9381

9482
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/shifthackz)

app/build.gradle

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,15 @@ plugins {
88
id 'kotlin-kapt'
99
}
1010

11-
def taskRequests = getGradle().getStartParameter().getTaskRequests().toString()
12-
def isPlay = !(taskRequests.contains("Foss") || taskRequests.contains("foss"))
13-
14-
if (isPlay) {
15-
apply from: "$project.rootDir/gradle/plugins.gradle"
16-
}
17-
1811
apply from: "$project.rootDir/gradle/common.gradle"
1912

2013
android {
2114
namespace 'com.shifthackz.aisdv1.app'
2215
defaultConfig {
2316
applicationId "com.shifthackz.aisdv1.app"
24-
versionName "0.5.2"
25-
versionCode 165
17+
versionName "0.5.3"
18+
versionCode 166
2619

27-
buildConfigField "String", "CLOUD_AI_URL", "\"https://sdai.moroz.cc\""
2820
buildConfigField "String", "IMAGE_CDN_URL", "\"https://random.imagecdn.app\""
2921
buildConfigField "String", "HORDE_AI_URL", "\"https://stablehorde.net\""
3022
buildConfigField "String", "HORDE_AI_SIGN_UP_URL", "\"https://stablehorde.net/register\""
@@ -56,13 +48,8 @@ android {
5648
foss {
5749
dimension "type"
5850
applicationIdSuffix = ".foss"
59-
resValue "string", "app_name", "SDAI FOSS"
60-
buildConfigField "String", "BUILD_FLAVOR_TYPE", "\"FOSS\""
61-
}
62-
playstore {
63-
dimension "type"
6451
resValue "string", "app_name", "SDAI"
65-
buildConfigField "String", "BUILD_FLAVOR_TYPE", "\"GOOGLE_PLAY\""
52+
buildConfigField "String", "BUILD_FLAVOR_TYPE", "\"FOSS\""
6653
}
6754
}
6855
}
@@ -75,7 +62,6 @@ dependencies {
7562
implementation project(":network")
7663
implementation project(":storage")
7764
implementation project(":domain")
78-
implementation project(":feature:ads")
7965
implementation project(":feature:analytics")
8066
implementation project(":feature:auth")
8167
implementation project(":feature:diffusion")
@@ -87,10 +73,8 @@ dependencies {
8773
implementation reactive.rxkotlin
8874
implementation reactive.rxandroid
8975
implementation log.timber
90-
91-
playstoreImplementation platform(proprietary.fbBom)
92-
playstoreImplementation proprietary.fbA
93-
playstoreImplementation proprietary.fbC
76+
implementation ui.catppuccinSplashscreen
77+
implementation ui.catppuccinLegacy
9478
}
9579

9680
kapt {

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
android:icon="@mipmap/ic_launcher"
2626
android:label="@string/app_name"
2727
android:requestLegacyExternalStorage="true"
28-
android:theme="@style/Theme.AiSdCompose"
28+
android:theme="@style/Theme.AiSdCompose.Splash"
2929
android:usesCleartextTraffic="true">
3030

3131
<activity
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package com.shifthackz.aisdv1.app.di
22

3-
import com.shifthackz.aisdv1.feature.ads.di.adFeatureOldModule
43
import com.shifthackz.aisdv1.feature.analytics.di.analyticsModule
54
import com.shifthackz.aisdv1.feature.auth.di.authModule
65
import com.shifthackz.aisdv1.feature.diffusion.di.diffusionModule
76

87
val featureModule = (
9-
adFeatureOldModule
10-
+ analyticsModule
8+
analyticsModule
119
+ authModule
1210
+ diffusionModule
1311
).toTypedArray()

app/src/main/java/com/shifthackz/aisdv1/app/di/ProvidersModule.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.shifthackz.aisdv1.app.di
22

33
import com.shifthackz.aisdv1.app.BuildConfig
44
import com.shifthackz.aisdv1.core.common.appbuild.BuildInfoProvider
5-
import com.shifthackz.aisdv1.core.common.appbuild.BuildType
65
import com.shifthackz.aisdv1.core.common.appbuild.BuildVersion
76
import com.shifthackz.aisdv1.core.common.file.FileProviderDescriptor
87
import com.shifthackz.aisdv1.core.common.links.LinksProvider
@@ -34,7 +33,6 @@ val providersModule = module {
3433
object : ApiUrlProvider {
3534
override val stableDiffusionAutomaticApiUrl: String = DEFAULT_SERVER_URL
3635
override val stableDiffusionAppApiUrl: String = BuildConfig.UPDATE_API_URL
37-
override val stableDiffusionCloudAiApiUrl: String = BuildConfig.CLOUD_AI_URL
3836
override val hordeApiUrl: String = BuildConfig.HORDE_AI_URL
3937
override val imageCdnApiUrl: String = BuildConfig.IMAGE_CDN_URL
4038
}
@@ -61,7 +59,6 @@ val providersModule = module {
6159

6260
single<LinksProvider> {
6361
object : LinksProvider {
64-
override val cloudUrl: String = BuildConfig.CLOUD_AI_URL
6562
override val hordeUrl: String = BuildConfig.HORDE_AI_URL
6663
override val hordeSignUpUrl: String = BuildConfig.HORDE_AI_SIGN_UP_URL
6764
override val privacyPolicyUrl: String = BuildConfig.POLICY_URL
@@ -76,13 +73,12 @@ val providersModule = module {
7673
override val isDebug: Boolean = BuildConfig.DEBUG
7774
override val buildNumber: Int = BuildConfig.VERSION_CODE
7875
override val version: BuildVersion = BuildVersion(BuildConfig.VERSION_NAME)
79-
override val buildType: BuildType = BuildType.parse(BuildConfig.BUILD_FLAVOR_TYPE)
8076

8177
override fun toString(): String = buildString {
8278
append("$version")
8379
if (BuildConfig.DEBUG) append("-dev")
8480
append(" ($buildNumber)")
85-
buildType.takeIf { it == BuildType.FOSS }?.let { append(" $it") }
81+
append(" FOSS")
8682
}
8783
}
8884
}
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
<resources xmlns:tools="http://schemas.android.com/tools">
2-
<!-- Base application theme. -->
1+
<resources>
2+
33
<style name="Theme.AiSdCompose" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
4-
<!-- Primary brand color. -->
5-
<item name="colorPrimary">@color/purple_200</item>
6-
<item name="colorPrimaryVariant">@color/purple_700</item>
7-
<item name="colorOnPrimary">@color/black</item>
8-
<!-- Secondary brand color. -->
9-
<item name="colorSecondary">@color/teal_200</item>
10-
<item name="colorSecondaryVariant">@color/teal_200</item>
11-
<item name="colorOnSecondary">@color/black</item>
12-
<!-- Status bar color. -->
13-
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
14-
<!-- Customize your theme here. -->
4+
<item name="colorPrimary">@color/catppuccin_frappe_mauve</item>
5+
<item name="colorPrimaryVariant">@color/catppuccin_frappe_mauve</item>
6+
<item name="colorOnPrimary">@color/catppuccin_frappe_base</item>
7+
<item name="colorSecondary">@color/catppuccin_frappe_mauve</item>
8+
<item name="colorSecondaryVariant">@color/catppuccin_frappe_mauve</item>
9+
<item name="colorOnSecondary">@color/catppuccin_frappe_base</item>
10+
<item name="android:statusBarColor">@color/catppuccin_frappe_mantle</item>
1511
</style>
16-
</resources>
12+
13+
<style name="Theme.AiSdCompose.Splash" parent="Theme.Catppuccin.Frappe.SplashScreen">
14+
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
15+
<item name="windowSplashScreenAnimationDuration">500</item>
16+
<item name="postSplashScreenTheme">@style/Theme.AiSdCompose</item>
17+
</style>
18+
</resources>

app/src/main/res/values/themes.xml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
<resources xmlns:tools="http://schemas.android.com/tools">
2-
<!-- Base application theme. -->
1+
<resources>
2+
33
<style name="Theme.AiSdCompose" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
4-
<!-- Primary brand color. -->
5-
<item name="colorPrimary">@color/purple_500</item>
6-
<item name="colorPrimaryVariant">@color/purple_700</item>
7-
<item name="colorOnPrimary">@color/white</item>
8-
<!-- Secondary brand color. -->
9-
<item name="colorSecondary">@color/teal_200</item>
10-
<item name="colorSecondaryVariant">@color/teal_700</item>
11-
<item name="colorOnSecondary">@color/black</item>
12-
<!-- Status bar color. -->
13-
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
14-
<!-- Customize your theme here. -->
4+
<item name="colorPrimary">@color/catppuccin_latte_mauve</item>
5+
<item name="colorPrimaryVariant">@color/catppuccin_latte_mauve</item>
6+
<item name="colorOnPrimary">@color/catppuccin_latte_base</item>
7+
<item name="colorSecondary">@color/catppuccin_latte_mauve</item>
8+
<item name="colorSecondaryVariant">@color/catppuccin_latte_mauve</item>
9+
<item name="colorOnSecondary">@color/catppuccin_latte_base</item>
10+
<item name="android:statusBarColor">@color/catppuccin_latte_mantle</item>
11+
</style>
12+
13+
<style name="Theme.AiSdCompose.Splash" parent="Theme.Catppuccin.Latte.SplashScreen">
14+
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
15+
<item name="windowSplashScreenAnimationDuration">500</item>
16+
<item name="postSplashScreenTheme">@style/Theme.AiSdCompose</item>
1517
</style>
1618
</resources>

build.gradle

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
buildscript {
22
ext {
33
minSdk = 23
4-
targetSdk = 33
5-
}
6-
def taskRequests = getGradle().getStartParameter().getTaskRequests().toString()
7-
def isPlay = !(taskRequests.contains("Foss") || taskRequests.contains("foss"))
8-
dependencies {
9-
if (isPlay) {
10-
classpath 'com.google.gms:google-services:4.3.15'
11-
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.7'
12-
}
4+
targetSdk = 34
135
}
146
}
157

168
plugins {
17-
id 'com.android.application' version '8.1.0' apply false
18-
id 'com.android.library' version '8.1.0' apply false
19-
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
9+
id 'com.android.application' version '8.2.0' apply false
10+
id 'com.android.library' version '8.2.0' apply false
11+
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
2012
}

core/common/src/main/java/com/shifthackz/aisdv1/core/common/appbuild/BuildInfoProvider.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ interface BuildInfoProvider {
44
val isDebug: Boolean
55
val buildNumber: Int
66
val version: BuildVersion
7-
val buildType: BuildType
87
}

core/common/src/main/java/com/shifthackz/aisdv1/core/common/appbuild/BuildType.kt

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

0 commit comments

Comments
 (0)