Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
chore(deps): update deps and app version 2.2.2 (#242)
Browse files Browse the repository at this point in the history
* chore(deps): update deps and app version 2.2.2

* chore(deps): bump android releated dependencies

* refactor(ci): build android releases with split-per-abi flag

* chore(sdk): bump dart and flutter sdk versions
  • Loading branch information
tsinis authored Aug 19, 2023
1 parent f3a14fe commit 23b7175
Show file tree
Hide file tree
Showing 9 changed files with 176 additions and 143 deletions.
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ The application uses a **feature-driven** directory structure. This project stru

### Tests

More than 93% (∼98% actually, due to [mixin coverage bug in Dart language](https://github.com/dart-lang/sdk/issues/49887) since Dart 2.19) of the application is [covered by hundreds of tests](https://app.codecov.io/gh/tsinis/colors_ai), you can find here: [Unit (mainly), Widget](../test/) and [Integration tests](../integration_test/).
More than 98% of the application is [covered by hundreds of tests](https://app.codecov.io/gh/tsinis/colors_ai), you can find here: [Unit (mainly), Widget](../test/) and [Integration tests](../integration_test/).

## Accessibility

The app was originally designed to be accessible by **WCAG 2.1 AA standards at minimum, and AAA in particular**, although it was not intended to be used by the blind or by people with severe visual disabilities. All **texts have a contrast ratio at least of 4.5, images 3.0, touch target sizes of at least 48dp**. The application was audited physically on a first-generation iPhone SE (smallest iPhone at this moment) with maximum font size, thickness, contrast, and component magnification. The **audit was also performed on the macOS** version of the app, using the same Accessibility Inspector as on the iOS. The **report from the official Accessibility Scanner for Android** (with a tested device with screen size 640x320px and maximum UI and font scale) can be found at [resources/accessibility](../resources/accessibility/) folder. As you may see it will only complain about the small tap size of text links in the *About* app section and overall screen semantics (which is a [framework bug](https://github.com/flutter/flutter/issues/39531)). Also, the application is **translated into 4 languages, have a haptic feedback (vibration) on mobile devices and sound feedback on all platforms**. The UI was also built to be **controllable via keyboard/input device/remote control/gamepad**.

## How to run it

Flutter **3.6** or higher is assumed to be installed. For your convenience, all generated code has been committed to this repository, so all you have to do is run this command from the terminal/command line from the project's root folder:
Flutter **3.13** or higher is assumed to be installed. For your convenience, all generated code has been committed to this repository, so all you have to do is run this command from the terminal/command line from the project's root folder:

```shell
flutter run
Expand Down
15 changes: 13 additions & 2 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
reviewers:
- "tsinis"
commit-message:
Expand All @@ -17,11 +17,22 @@ updates:
versioning-strategy: increase
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
reviewers:
- "tsinis"
commit-message:
prefix: "chore"
include: "scope"
ignore:
- dependency-name: "msix"

# Maintain dependencies for Android
- package-ecosystem: gradle
directory: "/android"
schedule:
interval: "weekly"
reviewers:
- "tsinis"
commit-message:
prefix: "chore"
include: "scope"
13 changes: 8 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,21 @@ jobs:
run: echo "${{ secrets.KEYSTORE_JKS_BASE64 }}" | base64 --decode > android/app/key.jks

- name: Build Android app
run: flutter build appbundle --release && flutter build apk --release
run: flutter build appbundle --release && flutter build apk --split-per-abi --release

- name: Rename APK
run: mv ./build/app/outputs/flutter-apk/app-release.apk ./build/app/outputs/flutter-apk/colors-ai-android.apk
- name: Rename APKs
run: |
mv ./build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk ./build/app/outputs/flutter-apk/colors-ai-armeabi-v7a.apk
mv ./build/app/outputs/flutter-apk/app-arm64-v8a-release.apk ./build/app/outputs/flutter-apk/colors-ai-arm64-v8a.apk
mv ./build/app/outputs/flutter-apk/app-x86_64-release.apk ./build/app/outputs/flutter-apk/colors-ai-x86_64.apk
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/colors-ai-android.apk,colors-ai-linux.zip"
artifacts: "build/app/outputs/flutter-apk/colors-ai-armeabi-v7a.apk,build/app/outputs/flutter-apk/colors-ai-arm64-v8a.apk,build/app/outputs/flutter-apk/colors-ai-x86_64.apk,colors-ai-linux.zip"
body: "${{ github.event.head_commit.message }}"
token: ${{ secrets.GH_TOKEN }}
tag: "${{env.RELEASE_TAG}}"
tag: "${{ env.RELEASE_TAG }}"
allowUpdates: true

- name: Save AAB to Artifacts
Expand Down
8 changes: 6 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ linter:
comment_references: true
control_flow_in_finally: true
empty_statements: true
iterable_contains_unrelated_type: true
join_return_with_assignment: true
leading_newlines_in_multiline_strings: true
list_remove_unrelated_type: true
literal_only_boolean_expressions: true
missing_whitespace_between_adjacent_strings: true
no_adjacent_strings_in_list: true
Expand Down Expand Up @@ -364,6 +362,12 @@ linter:
# Linter 1.30.0+
collection_methods_unrelated_type: true
dangling_library_doc_comments: true
# TODO:
# body_might_complete_normally_catch_error: true
# cast_from_null_always_fails: true
# cast_from_nullable_always_fails: true
# deprecated_colon_for_default_value: true
# duplicate_export: true
enable_null_safety: true
implicit_call_tearoffs: true
library_annotations: true
Expand Down
5 changes: 2 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ android {

defaultConfig {
applicationId "is.tsin.colors_ai.colors_ai"
minSdkVersion 18
targetSdkVersion 33
minSdkVersion 19
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
Expand All @@ -63,7 +63,6 @@ android {
signingConfig signingConfigs.release
}
}
ndkVersion "22.1.7171670"
}

flutter {
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.8.22'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-all.zip
Loading

0 comments on commit 23b7175

Please sign in to comment.