Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
656ae13
First view with jetpack compose
redwarp Jun 20, 2022
6208999
Action bar is jetpack compose
redwarp Jun 23, 2022
7b91332
Basic layout kind of working?
redwarp Jun 23, 2022
c793a7b
Use a painter for drawable
redwarp Jun 24, 2022
c1ef9fd
Working on color picker
redwarp Jun 25, 2022
81c490d
Color picking working, delete fragment
redwarp Jun 25, 2022
1de4475
Working on single activity
redwarp Jun 26, 2022
6413187
Check is preview, stick to one activity
redwarp Jun 26, 2022
ee9fc2e
Delete text activity
redwarp Jun 26, 2022
c644337
Getting rid of the last activity. Now the hard part begins
redwarp Jun 26, 2022
191c1ee
Cleaning up unused dependencies
redwarp Jun 27, 2022
71302b2
Add some accessibility text to icons
redwarp Jun 27, 2022
b3497f6
Fixing lint issues
redwarp Jun 27, 2022
01ec4b2
Refactor
redwarp Jun 27, 2022
4ee770e
Same text spacing for TextDrawable
redwarp Jun 27, 2022
747d9fc
Cleanup setup fragment
redwarp Jun 27, 2022
33ad32d
Properly inset pages
redwarp Jun 28, 2022
737abae
UpdateStatusBarColor as composable function
redwarp Jun 28, 2022
a4daed8
Replace flow by evenly spacing layout
redwarp Jun 28, 2022
451b98a
Fix drawable not started when set
redwarp Jun 29, 2022
f8aa211
ComponentActivity only
redwarp Jun 29, 2022
7c7ef36
Module for markdown
redwarp Jun 29, 2022
c037f72
Update kotlin to 1.7.0, compose compiler to 1.2.0
redwarp Jun 29, 2022
7aa0888
Fixes for block quotes, paragraphs, code
redwarp Jun 30, 2022
8a876b4
Bullet aligned list
redwarp Jun 30, 2022
79ad4e7
Setup primary and secondary for theme
redwarp Jul 3, 2022
adc770a
Create setup model, so I can make a preview
redwarp Jul 4, 2022
d2da961
Cleanup theme
redwarp Jul 4, 2022
b238b7d
Working on screenshoting
redwarp Jul 4, 2022
9fd903b
Goofing with testing
redwarp Jul 5, 2022
4a2fa88
Better preview for composable
redwarp Jul 5, 2022
2a28f36
Setup screenshots with fastlane (not 100% convinced)
redwarp Jul 5, 2022
476f31e
Generate screenshots with fastlane
redwarp Jul 5, 2022
cba47e3
Cleanup unused dependencies and resources
redwarp Jul 9, 2022
286902d
Tiny compose optim in settings to avoid recomposition
redwarp Jul 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
/fetch_translations/target
/update_fastlane/target
/target
fastlane/report.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: gradle-task
name: Apply Spotless
args: [":app:spotlessApply", -w, -o]
args: ["spotlessApply", -w, -o]
types: [kotlin]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
Expand Down
67 changes: 32 additions & 35 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.571.0)
aws-sdk-core (3.130.0)
aws-partitions (1.602.0)
aws-sdk-core (3.131.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.55.0)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.57.0)
aws-sdk-core (~> 3, >= 3.127.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.113.0)
aws-sdk-s3 (1.114.0)
aws-sdk-core (~> 3, >= 3.127.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
aws-sigv4 (1.4.0)
aws-sigv4 (1.5.0)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.1.0)
Expand All @@ -36,7 +36,7 @@ GEM
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
emoji_regex (3.2.3)
excon (0.92.1)
excon (0.92.3)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand All @@ -56,8 +56,8 @@ GEM
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
Expand All @@ -66,7 +66,7 @@ GEM
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.6)
fastlane (2.205.1)
fastlane (2.207.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand Down Expand Up @@ -106,9 +106,9 @@ GEM
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.17.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-core (0.4.2)
google-apis-androidpublisher_v3 (0.24.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-core (0.7.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
Expand All @@ -117,40 +117,40 @@ GEM
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.10.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-playcustomapp_v1 (0.7.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-storage_v1 (0.11.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-iamcredentials_v1 (0.13.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-playcustomapp_v1 (0.10.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-storage_v1 (0.17.0)
google-apis-core (>= 0.7, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.2.0)
google-cloud-storage (1.36.1)
google-cloud-storage (1.37.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.1)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
googleauth (1.1.2)
googleauth (1.2.0)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.4)
http-cookie (1.0.5)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.6.1)
json (2.6.1)
jwt (2.3.0)
json (2.6.2)
jwt (2.4.1)
memoist (0.16.2)
mini_magick (4.11.0)
mini_mime (1.1.2)
Expand All @@ -161,9 +161,9 @@ GEM
optparse (0.1.1)
os (1.1.4)
plist (3.6.0)
public_suffix (4.0.6)
public_suffix (4.0.7)
rake (13.0.6)
representable (3.1.1)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
Expand All @@ -173,9 +173,9 @@ GEM
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
security (0.1.3)
signet (0.16.1)
signet (0.17.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.0)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.8)
Expand All @@ -192,12 +192,11 @@ GEM
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.1)
unf_ext (0.0.8.1-x64-mingw32)
unf_ext (0.0.8.2-x64-mingw-ucrt)
unicode-display_width (1.8.0)
webrick (1.7.0)
word_wrap (1.0.0)
xcodeproj (1.21.0)
xcodeproj (1.22.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
Expand All @@ -210,12 +209,10 @@ GEM
xcpretty (~> 0.2, >= 0.0.7)

PLATFORMS
x64-mingw32
x86_64-darwin-19
x86_64-linux
x64-mingw-ucrt

DEPENDENCIES
fastlane

BUNDLED WITH
2.2.15
2.3.7
51 changes: 36 additions & 15 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id "com.diffplug.spotless" version "6.7.2"
id "com.diffplug.spotless"
id "se.ascp.gradle.gradle-versions-filter" version "0.1.16"
}

Expand All @@ -21,7 +21,7 @@ android {
}

buildFeatures {
viewBinding true
compose true
}

buildTypes {
Expand Down Expand Up @@ -55,41 +55,62 @@ android {
includeAndroidResources = true
}
}

composeOptions {
kotlinCompilerExtensionVersion '1.2.0'
}
}

spotless {
kotlin {
target project.fileTree(project.rootDir) {
include '**/net/redwarp/gifwallpaper/**/*.kt'
}
target '**/*.kt'

licenseHeaderFile 'license_header.kt'
licenseHeaderFile(new File(rootDir, 'assets/license_header.kt'))
}
}

dependencies {
var compose_version = '1.1.1'

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation(project(':markdown'))
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.navigation:navigation-fragment-ktx:2.4.2'
implementation 'androidx.navigation:navigation-ui-ktx:2.4.2'
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.2'
implementation 'androidx.lifecycle:lifecycle-service:2.4.1'
implementation 'androidx.lifecycle:lifecycle-service:2.5.0'
implementation 'androidx.palette:palette-ktx:1.0.0'
implementation "dev.sasikanth:colorsheet:1.0.1"
implementation "io.noties.markwon:core:4.6.2"
implementation "com.atlassian.commonmark:commonmark:0.17.0"
implementation "app.redwarp.gif:decoder:1.2.0"
implementation "app.redwarp.gif:android-drawable:1.2.0"
implementation "androidx.preference:preference-ktx:1.2.0"
implementation "androidx.datastore:datastore-preferences:1.0.0"

// Integration with activities
implementation 'androidx.activity:activity-compose:1.5.0'
// Compose Material Design
implementation "androidx.compose.material:material:$compose_version"
// Animations
implementation "androidx.compose.animation:animation:$compose_version"
// Tooling support (Previews, etc.)
implementation "androidx.compose.ui:ui-tooling:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation "androidx.navigation:navigation-compose:2.5.0"

implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
implementation "com.google.accompanist:accompanist-insets:0.23.1"

// Integration with ViewModels
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.0'

testImplementation 'junit:junit:4.13.2'
testImplementation 'org.robolectric:robolectric:4.8.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
// Test rules and transitive dependencies:
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$compose_version")
// Needed for createComposeRule, but not createAndroidComposeRule:
debugImplementation("androidx.compose.ui:ui-test-manifest:$compose_version")
androidTestImplementation 'tools.fastlane:screengrab:2.1.1'
}

def isNonStable = { String version ->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* Copyright 2020 Benoit Vermont
* Copyright 2020 GifWallpaper Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.redwarp.gifwallpaper.util

import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf
import net.redwarp.gifwallpaper.AppSettings

class FakeAppSettings : AppSettings {
override val powerSavingSettingFlow: Flow<Boolean>
get() = flowOf(true)
override val thermalThrottleSettingFlow: Flow<Boolean>
get() = flowOf(false)
override val isThermalThrottleSupported: Boolean = true

override suspend fun setPowerSaving(enabled: Boolean) = Unit

override suspend fun setThermalThrottle(enabled: Boolean) = Unit
}
Loading