Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2013 commits
Select commit Hold shift + click to select a range
d1bdf76
Translated using Weblate (Polish)
weblate Jul 20, 2025
55ee37d
Translated using Weblate (German)
weblate Jul 21, 2025
6485c63
Translated using Weblate (German)
weblate Jul 21, 2025
61d942a
Translated using Weblate (Chinese (Simplified))
weblate Jun 11, 2025
50c898e
Translated using Weblate (Spanish)
Jun 11, 2025
6844e24
Translated using Weblate (Chinese (Simplified))
SummerGUI Jun 12, 2025
1aae384
Translated using Weblate (French)
Jun 13, 2025
de3c2d5
Translated using Weblate (German)
Jun 21, 2025
9d7ce9a
Translated using Weblate (Polish)
Jun 23, 2025
4a5da0b
Translated using Weblate (Indonesian)
fitria3nabila-maker Jun 27, 2025
870c12a
Translated using Weblate (Indonesian)
fitria3nabila-maker Jun 27, 2025
aa12ac3
Translated using Weblate (German)
fsasm Jul 2, 2025
0668524
Translated using Weblate (German)
Jul 2, 2025
1411358
Translated using Weblate (German)
fsasm Jul 2, 2025
2017046
Translated using Weblate (German)
Jul 2, 2025
8bf31fc
Translated using Weblate (Hebrew)
omeritzics Jul 2, 2025
b2e6b24
Translated using Weblate (German)
weblate Jul 2, 2025
6faae20
Update translation files
weblate Jul 2, 2025
1f9acdc
Translated using Weblate (Chinese (Simplified))
weblate Jul 3, 2025
4fd3023
Translated using Weblate (French)
weblate Jul 3, 2025
83c0a2c
Translated using Weblate (Ukrainian)
weblate Jul 5, 2025
1424fe1
Translated using Weblate (Indonesian)
weblate Jul 6, 2025
61f5bd2
Translated using Weblate (French)
weblate Jul 7, 2025
486f8c7
Translated using Weblate (German)
weblate Jul 7, 2025
c33cb8e
Translated using Weblate (German)
weblate Jul 7, 2025
3552eb5
Translated using Weblate (German)
weblate Jul 7, 2025
fda0b7f
Translated using Weblate (French)
weblate Jul 7, 2025
3843040
Translated using Weblate (Ukrainian)
weblate Jul 7, 2025
9cdbed8
Translated using Weblate (Ukrainian)
weblate Jul 7, 2025
a9594ef
Translated using Weblate (Ukrainian)
weblate Jul 8, 2025
9bc0693
Translated using Weblate (Japanese)
weblate Jul 8, 2025
93dbf81
Translated using Weblate (Chinese (Traditional))
weblate Jul 8, 2025
3a6ee36
Translated using Weblate (Ukrainian)
weblate Jul 8, 2025
0e81f27
Translated using Weblate (Japanese)
weblate Jul 9, 2025
fc39e82
Translated using Weblate (Ukrainian)
weblate Jul 9, 2025
54967bb
Translated using Weblate (Indonesian)
weblate Jul 12, 2025
cbf7e7a
Translated using Weblate (Hungarian)
weblate Jul 13, 2025
57a90cc
Translated using Weblate (Indonesian)
weblate Jul 14, 2025
0010e54
Translated using Weblate (Chinese (Traditional))
weblate Jul 15, 2025
b33a613
Translated using Weblate (Italian)
weblate Jul 15, 2025
25f923b
Translated using Weblate (Chinese (Traditional))
weblate Jul 16, 2025
8350813
Translated using Weblate (Chinese (Traditional))
weblate Jul 17, 2025
685c0f6
Translated using Weblate (Polish)
weblate Jul 20, 2025
b978d65
Translated using Weblate (German)
weblate Jul 21, 2025
579c084
Translated using Weblate (German)
weblate Jul 21, 2025
3e6c9c9
Merge branch 'setup' into develop
phillipthelen Jul 21, 2025
989e30c
Translated using Weblate (English (United Kingdom))
weblate Jul 21, 2025
2975886
fix merge
phillipthelen Jul 21, 2025
042d426
Improve email erors during signup
phillipthelen Jul 21, 2025
78133b6
Updates language settings to use AppCompatDelegate
Hafizzle Jul 21, 2025
42f0264
Merge branch 'enhancement/updated-language-usage' into 4.7.9-dev
Hafizzle Jul 21, 2025
6c9fb20
Retrieves team plans after clearing cache
Hafizzle Jul 21, 2025
1826671
Merge branch 'fix/refresh-group-plan-on-clear-cache' into 4.7.9-dev
Hafizzle Jul 21, 2025
5bdd96c
Merge branch 'fix/chat-keyboard-overlayed-fix' into 4.7.9-dev
Hafizzle Jul 21, 2025
1780d67
Merge branch 'fix/reset-account-failure-handle' into 4.7.9-dev
Hafizzle Jul 21, 2025
0d32d91
Merge branch 'fix/endless-loading-circle-inbox-fix' into 4.7.9-dev
Hafizzle Jul 21, 2025
0f5c9b3
Merge branch 'enhancement/animal-customization-purchase-dialog' into …
Hafizzle Jul 21, 2025
48aeb5f
Merge branch '4.7.9-dev' into fix/reset-account-failure-handle
Hafizzle Jul 21, 2025
f52b78d
Merge branch 'fix/reset-account-failure-handle' into 4.7.9-dev
Hafizzle Jul 21, 2025
8442684
Merge branch '4.7.9-dev' into fix/endless-loading-circle-inbox-fix
Hafizzle Jul 21, 2025
99343ef
Merge branch 'fix/endless-loading-circle-inbox-fix' into 4.7.9-dev
Hafizzle Jul 21, 2025
b3937bd
Merge branch 'feature/challenge-category-filter' into 4.7.9-dev
Hafizzle Jul 21, 2025
c780a27
Merge branch '4.7.9-dev' into fix/chat-keyboard-overlayed-fix
Hafizzle Jul 21, 2025
0468fa6
Merge branch 'fix/chat-keyboard-overlayed-fix' into 4.7.9-dev
Hafizzle Jul 21, 2025
a09eefa
Prevents multiple Yesterdaily dialogs and cron runs
Hafizzle Jul 21, 2025
93a2d34
Merge branch 'fix/single-yesterdaily-instance' into 4.7.9-dev
Hafizzle Jul 21, 2025
fa8f20b
Translated using Weblate (Indonesian)
weblate Jul 22, 2025
cefa1a1
fix google sign in
phillipthelen Jul 23, 2025
f4c1d54
correctly set userEcists
phillipthelen Jul 23, 2025
8af3911
Fix monthly daily scheduling using incorrect weekday logic
Hafizzle Jul 23, 2025
c50ecba
Translated using Weblate (German)
weblate Jul 28, 2025
b8ded70
Translated using Weblate (German)
weblate Jul 29, 2025
221ea17
Translated using Weblate (Japanese)
weblate Jul 29, 2025
64aafaa
Translated using Weblate (Japanese)
weblate Jul 29, 2025
afd5158
Translated using Weblate (Japanese)
weblate Jul 29, 2025
3e6b651
Translated using Weblate (Japanese)
weblate Jul 29, 2025
92e2934
Translated using Weblate (Japanese)
weblate Jul 29, 2025
453cec3
Translated using Weblate (Japanese)
weblate Jul 29, 2025
bd23fbe
Translated using Weblate (Japanese)
weblate Jul 29, 2025
569ea21
Translated using Weblate (German)
weblate Jul 29, 2025
75aed61
Translated using Weblate (German)
weblate Jul 29, 2025
f69d7fd
Translated using Weblate (German)
weblate Jul 29, 2025
b003c69
Translated using Weblate (German)
weblate Jul 29, 2025
02c3511
Translated using Weblate (German)
weblate Jul 29, 2025
e808b7a
Translated using Weblate (German)
weblate Jul 29, 2025
7c72777
Translated using Weblate (German)
weblate Jul 29, 2025
ff7c2fa
Translated using Weblate (German)
weblate Jul 29, 2025
136a68f
Translated using Weblate (German)
weblate Jul 29, 2025
d77cbbe
Translated using Weblate (German)
weblate Jul 29, 2025
5e08134
Translated using Weblate (German)
weblate Jul 29, 2025
77dae4c
Translated using Weblate (German)
weblate Jul 29, 2025
2425e31
Translated using Weblate (German)
weblate Jul 29, 2025
30dbc8c
Translated using Weblate (German)
weblate Jul 29, 2025
da86bf2
Translated using Weblate (German)
weblate Jul 29, 2025
c57ba11
Translated using Weblate (German)
weblate Jul 29, 2025
88c40f1
Translated using Weblate (German)
weblate Jul 29, 2025
97fc9c9
Translated using Weblate (German)
weblate Jul 30, 2025
c3d155f
Translated using Weblate (Japanese)
weblate Jul 31, 2025
67113f1
remove old login bg
phillipthelen Aug 4, 2025
e8c3d4e
tweak login behaviour
phillipthelen Aug 4, 2025
0b610fd
update privacy prefs string
phillipthelen Aug 4, 2025
347e68a
update email template
phillipthelen Aug 4, 2025
ae4f04c
Merge branch 'main' of github.com:HabitRPG/habitica-android into develop
phillipthelen Aug 4, 2025
67ba5b5
Remove stable_Mount_Icon_Dragon-Hydra from filename map
Hafizzle Aug 5, 2025
61be43a
Remove stable_Mount_Icon_Dragon-Hydra from filename map
Hafizzle Aug 5, 2025
f294792
swap buttons
phillipthelen Aug 14, 2025
927408f
Merge branch 'develop' of github.com:HabitRPG/habitica-android into d…
phillipthelen Aug 14, 2025
cac3c9f
Add self-hosted support.
terofeev Aug 11, 2025
6e6dba1
Remove IME action listener from chat edit text
Hafizzle Aug 14, 2025
25c5ade
remove old login background (again)
phillipthelen Aug 15, 2025
3072a13
Merge remote-tracking branch 'origin/develop' into 4.7.9-dev
Hafizzle Aug 18, 2025
cdd6e9f
switch to staging
phillipthelen Aug 25, 2025
1457e9a
setup flow improvements
phillipthelen Aug 26, 2025
7dc13cb
Fix bug where you can tap through the bottom bar
Hafizzle Aug 26, 2025
a032f39
Remove to-do reminders if to-do is completed
Hafizzle Aug 26, 2025
b015510
update dependencies
phillipthelen Aug 27, 2025
be685c9
fix imports
phillipthelen Aug 28, 2025
4b24ffa
finalize 4.8.0
phillipthelen Sep 2, 2025
81dea19
Version bumped to v4.8.0
phillipthelen Sep 2, 2025
c9b7310
Merge remote-tracking branch 'origin/develop' into 4.7.9-dev
Hafizzle Sep 2, 2025
c45b5d3
Privacy Updates
Hafizzle Sep 4, 2025
7d0c839
DI & cleaner implementation
Hafizzle Sep 4, 2025
dcb63e9
Merge branch 'feature/privacy-updates' into develop
Hafizzle Sep 4, 2025
15a234a
Merge branch 'feature/privacy-updates' into 4.7.9-dev
Hafizzle Sep 4, 2025
dec72d2
Fix some crashes
phillipthelen Sep 9, 2025
a3c87a9
prevent backstack from getting too big
phillipthelen Sep 9, 2025
04c2d04
fix parcelizing issues
phillipthelen Sep 9, 2025
e528af2
Remove firebase analytics (both mobile & wear)
Hafizzle Sep 11, 2025
b943a27
Merge branch 'remove-firebase-analytics' into develop
Hafizzle Sep 11, 2025
01fef15
Merge remote-tracking branch 'origin/remove-firebase-analytics' into …
Hafizzle Sep 17, 2025
3eed80e
Merge branch 'develop' into 4.7.9-dev
Hafizzle Sep 17, 2025
5f69e4a
fix typo
Hafizzle Sep 17, 2025
3367ad4
add italian strings
Hafizzle Sep 17, 2025
2a16fcf
Merge branch '4.7.9-dev' into develop
Hafizzle Sep 23, 2025
90e2747
Fix animated backgrounds blank on stats widget
Hafizzle Sep 25, 2025
b7cc8b5
Fix Group Plan task sorting
Hafizzle Sep 25, 2025
059162e
Escape apos'
Hafizzle Sep 25, 2025
168aff0
set a max height of 300dp, and allowed scrolling within the chat box
Hafizzle Sep 29, 2025
7a32f28
Fix Chat scroll jump with conditional refresh and new message indicator
Hafizzle Sep 30, 2025
3da9f3c
Fix task notes collapse button disappearing with markdown image
Hafizzle Sep 30, 2025
15ede5b
Merge branch 'next' into develop
Hafizzle Sep 30, 2025
d3c8ef5
Fix challenge task deletion not updating UI when editing challenges
Hafizzle Oct 1, 2025
f8b050f
Fix challenge filter persistence and add active filter indicator
Hafizzle Oct 1, 2025
8cc202a
Fix reset account dialog closing on wrong password
Hafizzle Oct 1, 2025
550cf93
adjusted ownership filter logic & add "clear" button to clear filter
Hafizzle Oct 1, 2025
d92f2de
Add the Participating & Not participating options to challenge filter
Hafizzle Oct 1, 2025
df4db96
Fix animal ears/tail not replacing existing equipped on preview
Hafizzle Oct 1, 2025
1acc559
Fix not being able to highlight/long press text on chatbar text
Hafizzle Oct 1, 2025
0a3ffdc
Fix movement method for selecting text on chat
Hafizzle Oct 1, 2025
a20e9e2
Fix chat bar keyboard spacing and reduce max height by 50dp
Hafizzle Oct 2, 2025
50fb184
Merge branch 'develop' into next
Hafizzle Oct 15, 2025
0b8b74f
Update party chat to filter by whos in party chat when "@" them
Hafizzle Oct 15, 2025
a865ca6
Merge branch 'enhancement/conditional-chat-scroll' into next
Hafizzle Oct 15, 2025
5c698f2
Fix links not working consistently when entering them in task notes
Hafizzle Oct 15, 2025
44e93bd
Implement DeathOverlay (to replace DeathActivity)
Hafizzle Oct 21, 2025
2a3321a
death overlay updates
Hafizzle Oct 21, 2025
dd18a06
tweaks to animation speed
Hafizzle Oct 22, 2025
2b6f6ca
Remove old DeathActivity
Hafizzle Oct 22, 2025
f046d87
Merge remote-tracking branch 'origin/enhancement/OOHP-overlay' into next
Hafizzle Oct 22, 2025
0f64095
Animation updates
Hafizzle Oct 22, 2025
9ec5e74
Search functionality within FAQ
Hafizzle Oct 24, 2025
cd295ae
Have search bar be same background color as game mechanics
Hafizzle Oct 27, 2025
66e3d0a
Merge branch 'feature/faq-search' into next
Hafizzle Oct 27, 2025
983be7c
Fix mismatch between server and android when setting/changing language
Hafizzle Oct 27, 2025
4727002
compared [iw] language code
Hafizzle Oct 28, 2025
bee1329
- Free state (Over level 100, hasn't used in past 45 days)
Hafizzle Oct 28, 2025
a95e0a8
Merge branch 'enhancement/OOHP-overlay' into next
Hafizzle Oct 28, 2025
0e0056d
Merge branch 'next' into develop
Hafizzle Oct 28, 2025
fff247d
modify toast and custom server dialog
schrauger Nov 3, 2025
b72e06c
Feedback updates
Hafizzle Nov 5, 2025
4bbe275
Update size values for death overlay on smaller phones
Hafizzle Nov 5, 2025
28c3439
Add scroll for subtext on death overlay for small phones
Hafizzle Nov 5, 2025
d042a9b
tweak small screen size requirement
Hafizzle Nov 5, 2025
94896b3
chat message optimization
Hafizzle Nov 6, 2025
9eb1842
Apply chat optimizations to group chat
Hafizzle Nov 6, 2025
23820a1
Fix "new message" bubble appearing when no new messages
Hafizzle Nov 6, 2025
1c473ca
OOHP overlay fixes, and push notif fixes
Hafizzle Nov 7, 2025
44e0c2d
Cleanup remote config code
phillipthelen Nov 10, 2025
8a0e8d7
remove some review prompt requirements
phillipthelen Nov 10, 2025
b0f09b4
Merge remote-tracking branch 'origin/feature/orb-of-rebirth' into dev…
Hafizzle Nov 13, 2025
0833708
Merge branch 'enhancement/chat-message-optimization' into develop
Hafizzle Nov 13, 2025
5615990
free Orb of Rebirth notification, visual updates
Hafizzle Nov 20, 2025
4a68ee0
Refresh user data after rebirth
Hafizzle Nov 21, 2025
04e17d0
Orb of rebirth modal text & UI updates
Hafizzle Nov 26, 2025
0396042
Merge branch 'feature/orb-of-rebirth' into develop
Hafizzle Nov 26, 2025
a2961b7
Pass user to quest accept/decline
Hafizzle Dec 1, 2025
81ea98e
Fix unexpected behavior when tapping clear on todo filter
Hafizzle Dec 1, 2025
697ebca
accurately reflect due date as selected date when opening date selection
Hafizzle Dec 1, 2025
8515a01
Fix notes visibility in shop recycler adapter
Hafizzle Dec 2, 2025
3442c52
orb of rebirth UI updates, use correct updated badge
Hafizzle Dec 2, 2025
ed584f0
Match bullet points to text color on dialog rebirth confirm modal
Hafizzle Dec 3, 2025
5655c42
party chat message consistency and prevents duplicates
Hafizzle Dec 18, 2025
dfc6831
Fix app language reverting to system locale
Hafizzle Dec 19, 2025
5b34bf3
Update language synchronization logic
Hafizzle Dec 19, 2025
c4fb936
Update text and add rebirth level check
Hafizzle Dec 29, 2025
e5ee9ef
Fixed gem purchase success modal
Hafizzle Dec 29, 2025
93c85d0
remove exclamation point from rebirth free string
Hafizzle Dec 30, 2025
1ce4d95
handle devices that require explicit vibrate permissions
Hafizzle Jan 5, 2026
02c8575
implement responsive drawer for tablets and multi-window modes
Hafizzle Jan 5, 2026
ba49931
Update mobile stat guide strings
Hafizzle Jan 6, 2026
d92b114
Show quest damage on toast when scoring via widget
Hafizzle Jan 6, 2026
0ed47f9
Update quest accept/reject functionality to notifications
Hafizzle Jan 8, 2026
000b98f
Update attribute string descriptions
Hafizzle Jan 8, 2026
55038d7
capitalization
Hafizzle Jan 8, 2026
8123649
Merge branch 'next' into develop
Hafizzle Jan 8, 2026
e57b49f
Revert "implement responsive drawer for tablets and multi-window modes"
Hafizzle Jan 13, 2026
7c5262b
Avoid crash due to excessive fragment backstack
Hafizzle Jan 13, 2026
38746a4
Merge pull request #2174 from schrauger/add-self-hosted-support
Hafizzle Jan 29, 2026
281bebf
fix & updates from self-hosted server support PR #2174
Hafizzle Jan 29, 2026
fb292c6
self hosted server support updates
Hafizzle Jan 29, 2026
4054ece
Improve april fools handling
phillipthelen Feb 4, 2026
f7995f1
Revert "Update quest accept/reject functionality to notifications"
Hafizzle Feb 17, 2026
1e1d735
4.9.2
Hafizzle Feb 18, 2026
33e4945
implement responsive drawer for tablets and multi-window modes
Hafizzle Feb 18, 2026
b503355
Fix drawer toggle and back button behavior in persistent drawer mode
Hafizzle Feb 18, 2026
f09e794
Merge branch '4.9.3-dev' into develop
Hafizzle Feb 18, 2026
0d767b8
Improve april fools handling
phillipthelen Feb 4, 2026
014259a
substitue special pets and no pet
phillipthelen Feb 19, 2026
e7e3c54
Update persistent drawer logic
Hafizzle Feb 24, 2026
662a571
UI fixes in landscape mode
Hafizzle Feb 25, 2026
797b7b1
Preserve items during orientation changes
Hafizzle Feb 25, 2026
2e17fc0
Merge branch '4.9.3-dev' into 4.9.4-dev
Hafizzle Mar 2, 2026
4fe49a6
Merge branch '4.9.4-dev' into develop
Hafizzle Mar 2, 2026
2b5c6da
Fix 'read more' in notes section causes large blank space to appear
Hafizzle Mar 3, 2026
bd79dd4
Notification handling improvements
Hafizzle Mar 4, 2026
0944011
Migrate WearOS Google SSO from deprecated GoogleSignIn to Credential …
Hafizzle Mar 9, 2026
4d1c2e5
April fools potion & quest support
Hafizzle Mar 10, 2026
bd6f61c
coroutine-play-services
Hafizzle Mar 10, 2026
a12563b
keep server url on logout
phillipthelen Mar 13, 2026
c2c7fd0
fix april fools not reloading
phillipthelen Mar 13, 2026
263edc6
fix alien quest scale
phillipthelen Mar 13, 2026
c1c6164
custom server updates & https normalization
Hafizzle Mar 13, 2026
9034bf6
Gear icon on default & custom
Hafizzle Mar 13, 2026
156ce59
pet bottom sheet sprite substitution fix
Hafizzle Mar 13, 2026
c2d77a5
show android specific noPet
phillipthelen Mar 16, 2026
b273e40
fix showing no pet
phillipthelen Mar 16, 2026
49e378a
Fix dismissing keyboard clears todo search
Hafizzle Mar 17, 2026
13e4707
Fix monthly weeksOfMonth dailies triggering every day of the target week
Hafizzle Mar 17, 2026
2eba5db
match subs more specific
phillipthelen Mar 18, 2026
4bc67f1
handle notification url
phillipthelen Mar 18, 2026
5710893
s please
phillipthelen Mar 18, 2026
100a6a2
server indicator 16sp & color white
Hafizzle Mar 19, 2026
6763635
Merge remote-tracking branch 'origin/develop' into develop
Hafizzle Mar 19, 2026
c849c93
backspace task search fix
Hafizzle Mar 20, 2026
c0da9b5
Fix hatch-for-gems button showing for unpurchasable Egg quest eggs
Hafizzle Mar 24, 2026
47372bb
Merge pull request #2189 from HabitRPG/fix/weeksOfMonthTrigger
Hafizzle Mar 30, 2026
bb763cf
Update week-of-month scheduling to sync with start date change
Hafizzle Apr 1, 2026
7309d2c
update monthly weeksOfMonth summary wording and add 5th week warning
Hafizzle Apr 2, 2026
0c3bafe
forgot period
Hafizzle Apr 2, 2026
6302cf0
Merge branch 'fix/weeksOfMonthTrigger' into develop
Hafizzle Apr 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[*.{kt,kts}]
max_line_length=off
ktlint_function_naming_ignore_when_annotated_with=Composable

[*.gradle.kts]
property_naming=off


[shared/src/commonMain/kotlin/com/habitrpg/shared/habitica/models/responses/TaskDirectionData.kt]
ktlint_standard_backing-property-naming=disabled

[**/generated/**/*.kt]
ktlint_standard_property-naming=disabled
ktlint_standard_backing-property-naming=disabled
5 changes: 5 additions & 0 deletions .github/prepare-workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chmod +x gradlew
cp habitica.properties.example habitica.properties
cp habitica.resources.example habitica.resources
cp Habitica/google-services.json.example Habitica/google-services.json
cp Habitica/google-services.json.example wearos/google-services.json
162 changes: 83 additions & 79 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,104 +2,108 @@ name: Android CI

on:
push:
branches: [ develop ]
branches: [ main, 'version/*', 'feature/*' ]
pull_request:
branches: [ develop ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: copy properties file
uses: canastro/copy-file-action@master
with:
source: "habitica.properties.example"
target: "habitica.properties"
- name: copy resources file
uses: canastro/copy-file-action@master
- name: Prepare
run: ./.github/prepare-workflow
- name: Run with Gradle
uses: gradle/gradle-build-action@v2
with:
source: "habitica.resources.example"
target: "habitica.resources"
- name: copy google services file
uses: canastro/copy-file-action@master
with:
source: "Habitica/google-services.json.example"
target: "Habitica/google-services.json"
- name: Build with Gradle
run: ./gradlew assembleDebug -PdisablePreDex
lint:
runs-on: ubuntu-latest
arguments: assembleProdDebug -PdisablePreDex "-Dorg.gradle.jvmargs=-Xmx2g"

unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
module:
- "common"
- "Habitica"
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: copy properties file
uses: canastro/copy-file-action@master
with:
source: "habitica.properties.example"
target: "habitica.properties"
- name: copy resources file
uses: canastro/copy-file-action@master
with:
source: "habitica.resources.example"
target: "habitica.resources"
- name: copy google services file
uses: canastro/copy-file-action@master
- name: Prepare
run: ./.github/prepare-workflow
- name: Run with Gradle
uses: gradle/gradle-build-action@v2
with:
source: "Habitica/google-services.json.example"
target: "Habitica/google-services.json"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Ktlint
run: ./gradlew ktlint
detekt:
runs-on: ubuntu-latest
arguments: ${{ matrix.module }}:testProdDebugUnitTest

# ui-test:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# api-level: [28, 29, 30, 31, 32]
# steps:
# - uses: actions/checkout@v2
# - name: set up JDK 11
# uses: actions/setup-java@v2
# with:
# java-version: '11'
# distribution: 'adopt'
# cache: gradle
# - name: Prepare
# run: ./.github/prepare-workflow
# - name: run tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# arch: x86_64
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: true
# script: ./gradlew connectedProdDebugAndroidTest

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: copy properties file
uses: canastro/copy-file-action@master
- name: Prepare
run: ./.github/prepare-workflow
- name: Run with Gradle
uses: gradle/gradle-build-action@v2
with:
source: "habitica.properties.example"
target: "habitica.properties"
- name: copy resources file
uses: canastro/copy-file-action@master
with:
source: "habitica.resources.example"
target: "habitica.resources"
- name: copy google services file
uses: canastro/copy-file-action@master
with:
source: "Habitica/google-services.json.example"
target: "Habitica/google-services.json"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run detekt
run: ./gradlew detekt
- name: Upload SARIF to Github using the upload-sarif action
uses: github/codeql-action/upload-sarif@v1
if: ${{ always() }}
with:
sarif_file: build/report/detekt.sarif
arguments: ktlintCheck

# detekt:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'adopt'
# cache: gradle
# - name: Prepare
# run: ./.github/prepare-workflow
# - name: Run with Gradle
# uses: gradle/gradle-build-action@v2
# with:
# arguments: detekt
# - name: Upload SARIF to Github using the upload-sarif action
# uses: github/codeql-action/upload-sarif@v2
# if: ${{ always() }}
# with:
# sarif_file: build/reports/detekt.sarif
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ fastlane/metadata/android/*/changelogs/
*.aab
/Habitica/alpha
output-metadata.json
/Habitica/jacoco.exec
*.dm
/fastlane/upload_slack.py
.kotlin
/fastlane/README.md
33 changes: 0 additions & 33 deletions .tx/config

This file was deleted.

Loading