Merge branch 'develop' of github.com:HabitRPG/habitica-android into develop
30
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: 'Type: Bug'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. Moto G5]
|
||||
- OS: [e.g. Android 9]
|
||||
- App Version: [e.g. 2.2]
|
||||
- Habitica Username:
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: 'Type: Feature'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
android:icon="@mipmap/ic_launcher"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme"
|
||||
android:theme="@style/MainAppTheme"
|
||||
tools:replace="android:name"
|
||||
android:fullBackupContent="@xml/backup_descriptor"
|
||||
android:configChanges="orientation"
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
<activity
|
||||
android:name=".ui.activities.MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/MainAppTheme"
|
||||
android:theme="@style/LaunchAppTheme"
|
||||
android:windowSoftInputMode="stateHidden|adjustResize">
|
||||
<nav-graph android:value="@navigation/navigation" />
|
||||
<intent-filter>
|
||||
|
|
@ -80,12 +80,10 @@
|
|||
<activity
|
||||
android:name=".ui.activities.LoginActivity"
|
||||
android:label="@string/LoginActivityName"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ui.activities.IntroActivity"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
</activity>
|
||||
<activity
|
||||
|
|
@ -114,8 +112,7 @@
|
|||
android:name="com.facebook.sdk.AutoLogAppEventsEnabled"
|
||||
android:value="false"/>
|
||||
<activity
|
||||
android:name=".ui.activities.AboutActivity"
|
||||
android:theme="@style/AppThemeWithActionBarBlackText"/>
|
||||
android:name=".ui.activities.AboutActivity" />
|
||||
<activity
|
||||
android:name=".ui.activities.TaskFormActivity"
|
||||
android:parentActivityName=".ui.activities.MainActivity"
|
||||
|
|
@ -127,7 +124,6 @@
|
|||
</activity>
|
||||
<activity
|
||||
android:name=".ui.activities.GroupFormActivity"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:parentActivityName=".ui.activities.MainActivity"
|
||||
tools:ignore="UnusedAttribute">
|
||||
<meta-data
|
||||
|
|
@ -145,12 +141,10 @@
|
|||
</activity>
|
||||
<activity
|
||||
android:name=".ui.activities.GroupInviteActivity"
|
||||
android:theme="@style/AppThemeWithActionBarBlackText"
|
||||
tools:ignore="UnusedAttribute">
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ui.activities.FullProfileActivity"
|
||||
android:theme="@style/AppThemeWithActionBarBlackText"
|
||||
android:parentActivityName=".ui.activities.MainActivity"
|
||||
tools:ignore="UnusedAttribute">
|
||||
<meta-data
|
||||
|
|
@ -167,7 +161,6 @@
|
|||
</activity>
|
||||
<activity
|
||||
android:name=".ui.activities.ChallengeFormActivity"
|
||||
android:theme="@style/AppTheme.ActionBar"
|
||||
android:parentActivityName=".ui.activities.MainActivity"
|
||||
android:launchMode="singleTask"
|
||||
tools:ignore="UnusedAttribute">
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ buildscript {
|
|||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'io.fabric.tools:gradle:1.29.0'
|
||||
classpath 'io.fabric.tools:gradle:1.31.0'
|
||||
classpath('com.noveogroup.android:check:1.2.5') {
|
||||
exclude module: 'checkstyle'
|
||||
exclude module: 'pmd-java'
|
||||
|
|
@ -55,7 +55,7 @@ dependencies {
|
|||
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
|
||||
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
|
||||
//Crash Logging
|
||||
releaseImplementation('com.crashlytics.sdk.android:crashlytics:2.10.0@aar') {
|
||||
releaseImplementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
|
||||
transitive = true
|
||||
}
|
||||
//Dependency Injection
|
||||
|
|
@ -63,7 +63,7 @@ dependencies {
|
|||
kapt 'com.google.dagger:dagger-compiler:2.22.1'
|
||||
compileOnly 'javax.annotation:javax.annotation-api:1.3.2'
|
||||
//App Compatibility and Material Design
|
||||
implementation 'androidx.appcompat:appcompat:1.0.2'
|
||||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||||
implementation 'com.google.android.material:material:1.0.0'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.0.0'
|
||||
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
||||
|
|
@ -113,33 +113,32 @@ dependencies {
|
|||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.2'
|
||||
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.2'
|
||||
//Push Notifications
|
||||
implementation 'com.google.firebase:firebase-core:17.0.0'
|
||||
implementation 'com.google.firebase:firebase-messaging:19.0.1'
|
||||
implementation 'com.google.firebase:firebase-config:18.0.0'
|
||||
implementation 'com.google.firebase:firebase-perf:18.0.1'
|
||||
implementation 'com.google.firebase:firebase-core:17.2.0'
|
||||
implementation 'com.google.firebase:firebase-messaging:20.0.0'
|
||||
implementation 'com.google.firebase:firebase-config:19.0.1'
|
||||
implementation 'com.google.firebase:firebase-perf:19.0.0'
|
||||
implementation 'com.google.android.gms:play-services-auth:17.0.0'
|
||||
implementation 'io.realm:android-adapters:3.1.0'
|
||||
implementation(project(':seeds-sdk')) {
|
||||
exclude group: 'com.google.android.gms'
|
||||
exclude group: 'com.android.support', module: 'multidex'
|
||||
}
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'com.nex3z:flow-layout:1.2.2'
|
||||
|
||||
implementation 'androidx.core:core-ktx:1.0.2'
|
||||
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
|
||||
kapt "androidx.lifecycle:lifecycle-compiler:2.0.0"
|
||||
implementation 'androidx.core:core-ktx:1.1.0'
|
||||
implementation "androidx.lifecycle:lifecycle-extensions:2.1.0"
|
||||
implementation "androidx.lifecycle:lifecycle-common-java8:2.1.0"
|
||||
implementation 'android.arch.navigation:navigation-fragment-ktx:1.0.0'
|
||||
implementation 'android.arch.navigation:navigation-ui-ktx:1.0.0'
|
||||
implementation "androidx.paging:paging-runtime-ktx:2.1.0"
|
||||
implementation 'com.plattysoft.leonids:LeonidsLib:1.3.2'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0'
|
||||
|
||||
implementation project(':shared')
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion '28.0.3'
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion '29.0.2'
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
|
|
@ -148,9 +147,10 @@ android {
|
|||
buildConfigField "String", "STORE", "\"google\""
|
||||
buildConfigField "String", "TESTING_LEVEL", "\"production\""
|
||||
multiDexEnabled true
|
||||
resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW"
|
||||
|
||||
versionCode 2169
|
||||
versionName "2.0"
|
||||
versionCode 2244
|
||||
versionName "2.1.1"
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 18 KiB |
BIN
Habitica/ic_launcher-web.webp
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
3
Habitica/proguard-rules.pro
vendored
|
|
@ -153,9 +153,6 @@
|
|||
#checkout
|
||||
-keep class com.android.vending.billing.**
|
||||
|
||||
#seeds sdk
|
||||
-keep class com.playseeds.** { *; }
|
||||
|
||||
-assumenosideeffects class org.solovyev.android.checkout.Billing {
|
||||
public static void debug(...);
|
||||
public static void warning(...);
|
||||
|
|
|
|||
|
|
@ -1,52 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
||||
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.
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true" android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator android:propertyName="translationZ"
|
||||
android:duration="100"
|
||||
android:valueTo="4dp"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator android:propertyName="elevation"
|
||||
android:duration="0"
|
||||
android:valueTo="2dp"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
<!-- base state -->
|
||||
<item android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator android:propertyName="translationZ"
|
||||
android:duration="100"
|
||||
android:valueTo="0"
|
||||
android:startDelay="100"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator android:propertyName="elevation"
|
||||
android:duration="0"
|
||||
android:valueTo="2dp"
|
||||
android:valueType="floatType" />
|
||||
</set>
|
||||
</item>
|
||||
<item>
|
||||
<set>
|
||||
<objectAnimator android:propertyName="translationZ"
|
||||
android:duration="0"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator android:propertyName="elevation"
|
||||
android:duration="0"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
</selector>
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:fromDegrees="0"
|
||||
android:toDegrees="360"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%"
|
||||
android:duration="1000"
|
||||
android:interpolator="@android:anim/linear_interpolator" />
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="200">
|
||||
<translate
|
||||
android:fromYDelta="100%"
|
||||
android:toYDelta="0%"/>
|
||||
</set>
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="200">
|
||||
<translate android:fromYDelta="0%"
|
||||
android:toYDelta="100%"
|
||||
/>
|
||||
</set>
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rotate
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:fromDegrees="0"
|
||||
android:toDegrees="45"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%" />
|
||||
|
Before Width: | Height: | Size: 1.9 KiB |
BIN
Habitica/res/drawable-hdpi/avatar_border.webp
Normal file
|
After Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 333 B |
BIN
Habitica/res/drawable-hdpi/back_arrow_disabled.webp
Normal file
|
After Width: | Height: | Size: 120 B |
|
Before Width: | Height: | Size: 346 B |
BIN
Habitica/res/drawable-hdpi/back_arrow_enabled.webp
Normal file
|
After Width: | Height: | Size: 104 B |
|
Before Width: | Height: | Size: 2 KiB |
BIN
Habitica/res/drawable-hdpi/bottom_navigation_inset.webp
Normal file
|
After Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 4.9 KiB |
BIN
Habitica/res/drawable-hdpi/cloud_1.webp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 5 KiB |
BIN
Habitica/res/drawable-hdpi/cloud_2.webp
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 461 B |
BIN
Habitica/res/drawable-hdpi/drag_grip.webp
Normal file
|
After Width: | Height: | Size: 182 B |
|
Before Width: | Height: | Size: 4.3 KiB |
BIN
Habitica/res/drawable-hdpi/fab_background.webp
Normal file
|
After Width: | Height: | Size: 518 B |
|
Before Width: | Height: | Size: 316 B |
BIN
Habitica/res/drawable-hdpi/fab_plus.webp
Normal file
|
After Width: | Height: | Size: 142 B |
|
Before Width: | Height: | Size: 3 KiB |
BIN
Habitica/res/drawable-hdpi/fab_submenu_background.webp
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 327 B |
BIN
Habitica/res/drawable-hdpi/forward_arrow_enabled.webp
Normal file
|
After Width: | Height: | Size: 106 B |
|
Before Width: | Height: | Size: 13 KiB |
BIN
Habitica/res/drawable-hdpi/gold_multiple.webp
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 148 B |
|
Before Width: | Height: | Size: 9.6 KiB |
BIN
Habitica/res/drawable-hdpi/presents1.webp
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 9 KiB |
BIN
Habitica/res/drawable-hdpi/presents2.webp
Normal file
|
After Width: | Height: | Size: 5 KiB |
BIN
Habitica/res/drawable-hdpi/sparkles_left.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
Habitica/res/drawable-hdpi/sparkles_right.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
BIN
Habitica/res/drawable-hdpi/subscriber_gem_cap.webp
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
BIN
Habitica/res/drawable-mdpi/avatar_border.webp
Normal file
|
After Width: | Height: | Size: 400 B |
|
Before Width: | Height: | Size: 214 B |
BIN
Habitica/res/drawable-mdpi/back_arrow_disabled.webp
Normal file
|
After Width: | Height: | Size: 66 B |
|
Before Width: | Height: | Size: 203 B |
BIN
Habitica/res/drawable-mdpi/back_arrow_enabled.webp
Normal file
|
After Width: | Height: | Size: 66 B |
|
Before Width: | Height: | Size: 1.3 KiB |
BIN
Habitica/res/drawable-mdpi/bottom_navigation_inset.webp
Normal file
|
After Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 190 B |
BIN
Habitica/res/drawable-mdpi/drag_grip.webp
Normal file
|
After Width: | Height: | Size: 86 B |
|
Before Width: | Height: | Size: 3.1 KiB |
BIN
Habitica/res/drawable-mdpi/fab_background.webp
Normal file
|
After Width: | Height: | Size: 562 B |
|
Before Width: | Height: | Size: 202 B |
BIN
Habitica/res/drawable-mdpi/fab_plus.webp
Normal file
|
After Width: | Height: | Size: 88 B |
|
Before Width: | Height: | Size: 1.8 KiB |
BIN
Habitica/res/drawable-mdpi/fab_submenu_background.webp
Normal file
|
After Width: | Height: | Size: 752 B |
|
Before Width: | Height: | Size: 204 B |
BIN
Habitica/res/drawable-mdpi/forward_arrow_enabled.webp
Normal file
|
After Width: | Height: | Size: 66 B |
|
Before Width: | Height: | Size: 7.2 KiB |
BIN
Habitica/res/drawable-mdpi/gold_multiple.webp
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 98 B |
|
Before Width: | Height: | Size: 6 KiB |
BIN
Habitica/res/drawable-mdpi/presents1.webp
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
BIN
Habitica/res/drawable-mdpi/presents2.webp
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
Habitica/res/drawable-mdpi/sparkles_left.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Habitica/res/drawable-mdpi/sparkles_right.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
BIN
Habitica/res/drawable-mdpi/subscriber_gem_cap.webp
Normal file
|
After Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
BIN
Habitica/res/drawable-xhdpi/avatar_border.webp
Normal file
|
After Width: | Height: | Size: 428 B |
|
Before Width: | Height: | Size: 350 B |
BIN
Habitica/res/drawable-xhdpi/back_arrow_disabled.webp
Normal file
|
After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 339 B |
BIN
Habitica/res/drawable-xhdpi/back_arrow_enabled.webp
Normal file
|
After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 2.9 KiB |
BIN
Habitica/res/drawable-xhdpi/bottom_navigation_inset.webp
Normal file
|
After Width: | Height: | Size: 520 B |
|
Before Width: | Height: | Size: 5.5 KiB |
BIN
Habitica/res/drawable-xhdpi/cloud_1.webp
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
BIN
Habitica/res/drawable-xhdpi/cloud_2.webp
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 463 B |
BIN
Habitica/res/drawable-xhdpi/drag_grip.webp
Normal file
|
After Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 6 KiB |
BIN
Habitica/res/drawable-xhdpi/fab_background.webp
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 344 B |
BIN
Habitica/res/drawable-xhdpi/fab_plus.webp
Normal file
|
After Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 4.1 KiB |
BIN
Habitica/res/drawable-xhdpi/fab_submenu_background.webp
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 337 B |
BIN
Habitica/res/drawable-xhdpi/forward_arrow_enabled.webp
Normal file
|
After Width: | Height: | Size: 72 B |
|
Before Width: | Height: | Size: 16 KiB |
BIN
Habitica/res/drawable-xhdpi/gold_multiple.webp
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 13 KiB |