mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 12:18:59 +00:00
fix/disable actions
This commit is contained in:
parent
8d2fd994d1
commit
ec5a7e9a9c
4 changed files with 43 additions and 26 deletions
50
.github/workflows/android.yml
vendored
50
.github/workflows/android.yml
vendored
|
|
@ -44,31 +44,31 @@ jobs:
|
|||
with:
|
||||
arguments: testProdDebugUnitTest
|
||||
|
||||
ui-test:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
api-level: [24, 26, 28, 29, 30, 31]
|
||||
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: Validate Gradle wrapper
|
||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
||||
- 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
|
||||
# ui-test:
|
||||
# runs-on: macos-latest
|
||||
# strategy:
|
||||
# matrix:
|
||||
# api-level: [24, 26, 28, 29, 30, 31]
|
||||
# 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: Validate Gradle wrapper
|
||||
# uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
||||
# - 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
|
||||
|
|
|
|||
10
habitica.properties.example
Normal file
10
habitica.properties.example
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Habitica Server Port
|
||||
# local instance
|
||||
# PORT=3000
|
||||
PORT=80
|
||||
BASE_URL=https://habitica.com
|
||||
STAGING_KEY=
|
||||
ANDROID_TESTING_UUID=
|
||||
APPLE_AUTH_CLIENT_ID=
|
||||
DEBUG_USER_ID=
|
||||
DEBUG_API_KEY=
|
||||
4
habitica.resources.example
Normal file
4
habitica.resources.example
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
fabric_key=
|
||||
facebook_app_id=
|
||||
amplitude_app_id=
|
||||
application_ad_id=
|
||||
|
|
@ -22,5 +22,8 @@ class UserRepository @Inject constructor(val apiClient: ApiClient, val localRepo
|
|||
|
||||
suspend fun sleep() = apiClient.sleep()
|
||||
suspend fun revive() = apiClient.revive()
|
||||
suspend fun runCron() = apiClient.runCron()
|
||||
suspend fun runCron() {
|
||||
apiClient.runCron()
|
||||
retrieveUser()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue