Skip to content

Commit d10538e

Browse files
committed
Merge branch 'release/2.2.0'
2 parents 6116ef9 + 02e9e23 commit d10538e

File tree

248 files changed

+1102
-1235
lines changed

Some content is hidden

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

248 files changed

+1102
-1235
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "monthly"
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ on:
99
jobs:
1010
Test:
1111
runs-on: self-hosted
12+
timeout-minutes: 30
1213
steps:
1314
- name: Check out source code
14-
uses: actions/checkout@v1
15+
uses: actions/checkout@v4
1516

1617
- name: Build project
1718
run: ./build.sh build
1819

1920
- name: Run Android tests
20-
run: ./build.sh android-tests-parallel 24 25 26 28 30 31
21+
run: ./build.sh android-tests-parallel 28 29 30 32 33 34
2122

2223
- name: Upload artifacts
2324
if: always()
24-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v3
2526
with:
2627
name: build
2728
path: |

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@
1212
.idea
1313
.secret
1414
build
15-
build/
16-
captures
1715
local.properties
1816
node_modules
1917
*xcuserdata*
2018
*.sketch
21-
/design
22-
/releases
23-
/screenshots
2419
crowdin.yml
20+
kotlin-js-store

.secret/decrypt.sh

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

.secret/secret

-4.36 KB
Binary file not shown.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [2.2.0] -- 2024-01-30
4+
### Added
5+
- Add support for Android 14 (@iSoron, @hiqua)
6+
- Allow user to change app language (@leondzn)
7+
8+
### Fixed
9+
- Implement workaround to make notifications non-dismissible in Android 14 (@iSoron, #1872)
10+
- Fix splash screen background color in dark mode (@SIKV, #1888)
11+
312
## [2.1.3] -- 2023-08-28
413
### Fixed
514
- Use text input on Samsung devices (@iSoron, #1719)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ show you how your habits improved over time. It is completely ad-free and open
1717
source.
1818

1919
<p align="center">
20-
<a href="https://play.google.com/store/apps/details?id=org.isoron.uhabits&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/apps/en-play-badge-border.png" height="75px"/></a>
21-
<a href="https://f-droid.org/app/org.isoron.uhabits"><img alt="Get it on F-Droid" src="https://i.imgur.com/baSPE7X.png" height="75px"/></a>
20+
<a href="https://play.google.com/store/apps/details?id=org.isoron.uhabits&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" height="80px"/></a>
21+
<a href="https://f-droid.org/app/org.isoron.uhabits"><img alt="Get it on F-Droid" src="https://f-droid.org/badge/get-it-on.png" height="80px"/></a>
2222
</p>
2323

2424
## Screenshots

build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
plugins {
2-
val kotlinVersion = "1.6.10"
3-
id("com.android.application") version ("7.0.3") apply (false)
2+
val kotlinVersion = "1.9.21"
3+
id("com.android.application") version "8.1.4" apply (false)
44
id("org.jetbrains.kotlin.android") version kotlinVersion apply (false)
55
id("org.jetbrains.kotlin.kapt") version kotlinVersion apply (false)
6-
id("org.jetbrains.kotlin.android.extensions") version kotlinVersion apply (false)
76
id("org.jetbrains.kotlin.multiplatform") version kotlinVersion apply (false)
8-
id("org.jlleitschuh.gradle.ktlint") version "10.2.1"
7+
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
98
}
109

1110
apply {

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ android_setup() {
8585
$AVDMANAGER delete avd --name $AVDNAME
8686

8787
log_info "Creating new Android virtual device (API $API)..."
88-
(echo "y" | $SDKMANAGER --install "system-images;android-$API;default;x86_64") || return 1
88+
(echo "y" | $SDKMANAGER --install "system-images;android-$API;google_apis;x86_64") || return 1
8989
$AVDMANAGER create avd \
9090
--name $AVDNAME \
91-
--package "system-images;android-$API;default;x86_64" \
91+
--package "system-images;android-$API;google_apis;x86_64" \
9292
--device "Nexus 4" || return 1
9393

9494
flock -u 10
@@ -181,7 +181,7 @@ android_test() {
181181
OUT_INSTRUMENT=${ANDROID_OUTPUTS_DIR}/instrument-${API}.txt
182182
OUT_LOGCAT=${ANDROID_OUTPUTS_DIR}/logcat-${API}.txt
183183
FAILED_TESTS=""
184-
for i in {1..5}; do
184+
for i in {1..10}; do
185185
log_info "Running $size instrumented tests (attempt $i)..."
186186
$ADB shell am instrument \
187187
-r -e coverage true -e size "$size" $FAILED_TESTS \

docs/BUILD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The repository will be downloaded to the directory `uhabits`.
3333
2. When the IDE asks you for the project location, select `uhabits` and click "Ok".
3434
3. Android Studio will spend some time indexing the project. When this is complete, click the toolbar icon "Sync Project with Gradle File", located near the right corner of the top toolbar.
3535
4. The operation will likely fail several times due to missing Android SDK components. Each time it fails, click the link "Install missing platforms", "Install build tools", etc, and try again.
36-
5. To test the application, create a virtual Android device using the menu "Tools" and "AVD Manager". The default options should work fine, but free to customize the device.
36+
5. To test the application, create a virtual Android device using the menu "Tools" and "AVD Manager". The default options should work fine, but feel free to customize the device.
3737
6. Click the menu "Run" and "uhabits-android". The application should launch.
3838

3939

0 commit comments

Comments
 (0)