Skip to content

Commit

Permalink
Merge branch 'main' of github.com:HabitRPG/habitica-android into main
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Nov 14, 2023
2 parents 5789717 + 7c1a682 commit 589182f
Show file tree
Hide file tree
Showing 527 changed files with 8,512 additions and 4,832 deletions.
22 changes: 12 additions & 10 deletions Habitica/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
compileOnly 'javax.annotation:javax.annotation-api:1.3.2'
//App Compatibility and Material Design
implementation "androidx.appcompat:appcompat:$appcompat_version"
implementation 'com.google.android.material:material:1.8.0'
implementation 'com.google.android.material:material:1.9.0'
implementation "androidx.recyclerview:recyclerview:$recyclerview_version"
implementation "androidx.preference:preference-ktx:$preferences_version"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
Expand All @@ -51,7 +51,7 @@ dependencies {
implementation('com.jaredrummler:android-device-names:2.1.1')

// IAP Handling / Verification
implementation "com.android.billingclient:billing-ktx:5.2.0"
implementation "com.android.billingclient:billing-ktx:6.0.1"
implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1@aar'

implementation("io.coil-kt:coil-compose:$coil_version")
Expand All @@ -73,7 +73,7 @@ dependencies {

androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test:rules:1.5.0'
debugImplementation 'androidx.fragment:fragment-testing:1.5.7'
debugImplementation 'androidx.fragment:fragment-testing:1.6.1'
androidTestImplementation 'androidx.test:core-ktx:1.5.0'
debugImplementation "androidx.test:monitor:1.6.1"
androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.5'
Expand All @@ -95,7 +95,7 @@ dependencies {
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.firebase:firebase-config-ktx'
implementation 'com.google.firebase:firebase-perf-ktx'
implementation 'com.google.android.gms:play-services-ads:22.0.0'
implementation 'com.google.android.gms:play-services-ads:22.4.0'
implementation "com.google.android.gms:play-services-auth:$play_auth_version"
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation "com.google.android.gms:play-services-wearable:$play_wearables_version"
Expand All @@ -106,16 +106,17 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
implementation "androidx.fragment:fragment-ktx:1.5.7"
implementation "androidx.paging:paging-runtime-ktx:3.1.1"
implementation "androidx.paging:paging-compose:1.0.0-alpha19"
implementation "androidx.fragment:fragment-ktx:1.6.1"
implementation "androidx.paging:paging-runtime-ktx:$paging_version"
implementation "androidx.paging:paging-compose:$paging_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
implementation "com.google.accompanist:accompanist-themeadapter-material:$accompanist_version"
implementation "androidx.compose.material3:material3:1.0.1"
implementation "androidx.compose.material3:material3:1.1.2"
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
implementation 'com.google.android.play:core:1.10.3'

implementation 'androidx.activity:activity-compose:1.7.1'
implementation 'androidx.activity:activity-compose:1.7.2'
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.animation:animation:$compose_version"
Expand All @@ -142,6 +143,7 @@ android {

defaultConfig {
minSdkVersion min_sdk
compileSdk 34
applicationId "com.habitrpg.android.habitica"
vectorDrawables.useSupportLibrary = true
buildConfigField "String", "STORE", "\"google\""
Expand All @@ -168,7 +170,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion = "1.4.6"
kotlinCompilerExtensionVersion = "1.5.3"
}

signingConfigs {
Expand Down
Binary file added Habitica/res/drawable-hdpi/checkmark_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_boss_health.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_boss_rage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_eggs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_food.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_lock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_quests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_shops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/icon_special.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-hdpi/indicator_subscribe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/checkmark_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_desert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_golden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_pink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_saddle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_shade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_skeleton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/feed_zombie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/icon_boss_health.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Habitica/res/drawable-mdpi/icon_boss_rage.png
Binary file added Habitica/res/drawable-mdpi/icon_eggs.png
Binary file added Habitica/res/drawable-mdpi/icon_food.png
Binary file added Habitica/res/drawable-mdpi/icon_lock.png
Binary file added Habitica/res/drawable-mdpi/icon_quests.png
Binary file added Habitica/res/drawable-mdpi/icon_shops.png
Binary file added Habitica/res/drawable-mdpi/icon_special.png
Binary file added Habitica/res/drawable-mdpi/stable_tile_april.png
Binary file added Habitica/res/drawable-mdpi/stable_tile_august.png
Binary file added Habitica/res/drawable-mdpi/stable_tile_july.png
Binary file added Habitica/res/drawable-mdpi/stable_tile_june.png
Binary file added Habitica/res/drawable-mdpi/stable_tile_march.png
Binary file added Habitica/res/drawable-mdpi/stable_tile_may.png
Binary file added Habitica/res/drawable-mdpi/sub_benefits_armoire.png
Binary file added Habitica/res/drawable-mdpi/sub_benefits_faint.png
Binary file added Habitica/res/drawable-night/indicator_subscribe.png
Binary file added Habitica/res/drawable-xhdpi/checkmark_small.png
Binary file added Habitica/res/drawable-xhdpi/icon_boss_health.png
Binary file added Habitica/res/drawable-xhdpi/icon_boss_rage.png
Binary file added Habitica/res/drawable-xhdpi/icon_eggs.png
Binary file added Habitica/res/drawable-xhdpi/icon_food.png
Binary file added Habitica/res/drawable-xhdpi/icon_lock.png
Binary file added Habitica/res/drawable-xhdpi/icon_quests.png
Binary file added Habitica/res/drawable-xhdpi/icon_shops.png
Binary file added Habitica/res/drawable-xhdpi/icon_special.png
Binary file added Habitica/res/drawable-xhdpi/indicator_subscribe.png
Binary file added Habitica/res/drawable-xhdpi/sub_benefits_armoire.png
Binary file added Habitica/res/drawable-xxhdpi/checkmark_small.png
Binary file added Habitica/res/drawable-xxhdpi/icon_boss_rage.png
Binary file added Habitica/res/drawable-xxhdpi/icon_eggs.png
Binary file added Habitica/res/drawable-xxhdpi/icon_food.png
Binary file added Habitica/res/drawable-xxhdpi/icon_lock.png
Binary file added Habitica/res/drawable-xxhdpi/icon_quests.png
Binary file added Habitica/res/drawable-xxhdpi/icon_shops.png
Binary file added Habitica/res/drawable-xxhdpi/icon_special.png
Binary file added Habitica/res/drawable-xxhdpi/indicator_subscribe.png
4 changes: 2 additions & 2 deletions Habitica/res/drawable/ad_button_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:angle="0"
android:startColor="@color/green_100"
android:endColor="@color/green_500" />
<corners android:radius="8dp" />
<corners android:radius="12dp" />
</shape>
</item>
<item
Expand All @@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<solid android:color="@color/brand_400" />
<corners android:radius="6dp" />
<corners android:radius="10dp" />
</shape>
<ripple android:color="@color/white" />
</item>
Expand Down
4 changes: 2 additions & 2 deletions Habitica/res/drawable/ad_button_background_content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:angle="0"
android:startColor="@color/green_100"
android:endColor="@color/green_500" />
<corners android:radius="8dp" />
<corners android:radius="12dp" />
</shape>
</item>
<item
Expand All @@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<solid android:color="?attr/colorContentBackground" />
<corners android:radius="6dp" />
<corners android:radius="10dp" />
</shape>
<ripple android:color="@color/white" />
</item>
Expand Down
11 changes: 11 additions & 0 deletions Habitica/res/drawable/armoire_background_full.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="top">
<bitmap android:src="@drawable/armoire_background" />
</item>
<item android:top="80dp" android:gravity="bottom">
<shape android:shape="rectangle">
<solid android:color="@color/brand_400" />
</shape>
</item>
</layer-list>
4 changes: 2 additions & 2 deletions Habitica/res/drawable/avatar_customization_subcategory_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/brand" />
<solid android:color="@color/brand_100" />
</shape>
</item>
<item android:left="0dp" android:right="0dp" android:gravity="bottom">
<bitmap android:src="@drawable/customization_shadow" />
</item>
</layer-list>
</layer-list>
4 changes: 2 additions & 2 deletions Habitica/res/drawable/boss_health_bg.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="@color/red_50" />
<corners android:topLeftRadius="4dp" android:topRightRadius="4dp" />
</shape>
<corners android:topLeftRadius="@dimen/rounded_button_radius" android:topRightRadius="@dimen/rounded_button_radius" />
</shape>
7 changes: 7 additions & 0 deletions Habitica/res/drawable/confetti_subs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="14dp" android:tint="@color/background_green"
android:viewportHeight="14" android:viewportWidth="14"
android:width="14dp" >
<path android:fillType="evenOdd" android:pathData="M9.33333 9.33333L14 7L9.33333 4.66667L7 0L4.66667 4.66667L0 7L4.66667 9.33333L7 14L9.33333 9.33333Z" android:fillColor="@color/background_green" />
</vector>
11 changes: 11 additions & 0 deletions Habitica/res/drawable/item_indicator_subscribe.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="24dp" android:height="24dp">
<shape android:shape="oval">
<solid android:color="@color/green_100" />
</shape>
</item>
<item android:width="14dp" android:height="14dp" android:gravity="center">
<bitmap android:src="@drawable/indicator_subscribe" />
</item>
</layer-list>
4 changes: 2 additions & 2 deletions Habitica/res/drawable/pill_bg_green.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/green_50"/>
<solid android:color="@color/green_100"/>
<corners android:radius="20dip"/>
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>
</shape>
4 changes: 2 additions & 2 deletions Habitica/res/drawable/quest_collection_bg.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="@color/green_50" />
<corners android:topLeftRadius="4dp" android:topRightRadius="4dp" />
</shape>
<corners android:topLeftRadius="@dimen/rounded_button_radius" android:topRightRadius="@dimen/rounded_button_radius" />
</shape>
4 changes: 2 additions & 2 deletions Habitica/res/drawable/quest_difficulty_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">

<solid android:color="?attr/colorWindowBackground" />
<corners android:bottomLeftRadius="4dp" android:bottomRightRadius="4dp" />
<corners android:bottomLeftRadius="@dimen/rounded_button_radius" android:bottomRightRadius="@dimen/rounded_button_radius" />

</shape>
</shape>
14 changes: 14 additions & 0 deletions Habitica/res/drawable/shop_locked.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="24dp" android:height="24dp">
<shape>
<solid android:color="@color/offset_background"/>
<corners android:radius="20dip"/>
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>
</item>
<item android:width="10dp" android:height="12dp" android:gravity="center">
<bitmap android:src="@drawable/icon_lock" android:tintMode="src_atop" android:tint="@color/text_quad">
</bitmap>
</item>
</layer-list>
6 changes: 6 additions & 0 deletions Habitica/res/drawable/snackbar_background_black.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="@color/black" />
<corners android:radius="100dp" />
<stroke android:width="1dp" android:color="@color/black_20_alpha" />
</shape>
5 changes: 5 additions & 0 deletions Habitica/res/drawable/sub_perk_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#005737" />
<corners android:radius="8dp" />
</shape>
4 changes: 4 additions & 0 deletions Habitica/res/drawable/subscribe_incentive_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

</selector>
5 changes: 5 additions & 0 deletions Habitica/res/drawable/subscribe_incentive_bg_topround.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient android:startColor="#72CFFF" android:endColor="#77F4C7" />
<corners android:topLeftRadius="24dp" android:topRightRadius="24dp" />
</shape>
16 changes: 16 additions & 0 deletions Habitica/res/drawable/subscriber_benefit_button_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<gradient android:startColor="#77F4C7" android:endColor="#72CFFF" />
<corners android:radius="12dp" />
</shape>
</item>

<item android:left="3dp" android:right="3dp" android:top="3dp" android:bottom="3dp">
<shape android:shape="rectangle">
<gradient android:startColor="#72CFFF" android:endColor="#77F4C7" />
<corners android:radius="10dp" />
</shape>
</item>
</layer-list>
16 changes: 16 additions & 0 deletions Habitica/res/drawable/subscriber_benefit_snackbar_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<gradient android:startColor="#77F4C7" android:endColor="#72CFFF" />
<corners android:radius="100dp" />
</shape>
</item>

<item android:left="3dp" android:right="3dp" android:top="3dp" android:bottom="3dp">
<shape android:shape="rectangle">
<gradient android:startColor="#72CFFF" android:endColor="#77F4C7" />
<corners android:radius="100dp" />
</shape>
</item>
</layer-list>
Loading

0 comments on commit 589182f

Please sign in to comment.