Skip to content

Commit

Permalink
Merge pull request #356 from joeloewi7178/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
joeloewi7178 committed Feb 20, 2024
2 parents f85a42b + a7fad72 commit ee601ea
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 37 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ jobs:
- name: Access GOOGLE_SERVICES_JSON
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: Extract ssl certificate from hoyolab.com and replace
run: openssl s_client -showcerts -connect www.hoyolab.com:443 </dev/null 2>/dev/null|openssl x509 -outform DER >./app/src/main/res/raw/hoyolab_ca.der

- name: Generate jks file from base64
uses: timheuer/base64-to-file@v1.2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ jobs:
- name: Access GOOGLE_SERVICES_JSON
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: Extract ssl certificate from hoyolab.com and replace
run: openssl s_client -showcerts -connect www.hoyolab.com:443 </dev/null 2>/dev/null|openssl x509 -outform DER >./app/src/main/res/raw/hoyolab_ca.der

- name: Generate jks file from base64
uses: timheuer/base64-to-file@v1.2
with:
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {

defaultConfig {
applicationId = "com.joeloewi.croissant"
versionCode = 57
versionName = "1.2.7"
versionCode = 58
versionName = "1.2.8"
targetSdk = 34

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ fun LoginHoYoLABContent(
is LoadingState.Loading -> {
LinearProgressIndicator(
modifier = Modifier.fillMaxWidth(),
progress = progress
progress = { progress }
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,34 +97,39 @@ class CheckSessionWorker @AssistedInject constructor(
createCheckSessionNotification(_attendanceId)
)
}
} else {
Firebase.crashlytics.recordException(cause)
}

val executionLogId = insertWorkerExecutionLogUseCase(
WorkerExecutionLog(
attendanceId = _attendanceId,
state = WorkerExecutionLogState.FAILURE,
loggableWorker = LoggableWorker.CHECK_SESSION
)
)

insertFailureLogUseCase(
FailureLog(
executionLogId = executionLogId,
failureMessage = cause.message ?: "",
failureStackTrace = cause.stackTraceToString()
)
)

//let chained works do their jobs
Result.success()
}

is CancellationException -> {
throw cause
}
}

Firebase.crashlytics.recordException(cause)

val executionLogId = insertWorkerExecutionLogUseCase(
WorkerExecutionLog(
attendanceId = _attendanceId,
state = WorkerExecutionLogState.FAILURE,
loggableWorker = LoggableWorker.CHECK_SESSION
)
)

insertFailureLogUseCase(
FailureLog(
executionLogId = executionLogId,
failureMessage = cause.message ?: "",
failureStackTrace = cause.stackTraceToString()
)
)

//let chained works do their jobs
Result.success()
else -> {
Firebase.crashlytics.log("runAttemptCount: $runAttemptCount")
Result.retry()
}
}
}
)
}
Expand Down
Binary file removed app/src/main/res/raw/hoyolab_ca.der
Binary file not shown.
3 changes: 0 additions & 3 deletions app/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">hoyolab.com</domain>
<trust-anchors>
<certificates src="@raw/hoyolab_ca" />
</trust-anchors>
</domain-config>
</network-security-config>
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ coil = "2.5.0"
hilt = "2.50"
hiltExt = "1.1.0"
kotlin = "1.9.22"
kotlinxCoroutines = "1.7.3"
kotlinxCoroutines = "1.8.0"
kotlinxCollectionsImmutable = "0.3.7"
androidxProfileInstaller = "1.3.1"
androidxTestRunner = "1.5.2"
androidxTestCore = "1.5.0"
androidxBenchmarkMacroJunit4 = "1.2.3"
androidxTestRules = "1.5.0"
protobuf = "3.25.2"
protobuf = "3.25.3"
protobufPlugin = "0.9.4"
retrofit = "2.9.0"
room = "2.6.1"
moshi = "1.15.1"
androidPlayAppUpdateKtx = "2.1.0"
androidPlayReviewKtx = "2.0.1"
firebaseCrashlyticsPlugin = "2.9.9"
gmsGoogleServicesGradlePlugin = "4.4.0"
firebaseBom = "32.7.1"
gmsGoogleServicesGradlePlugin = "4.4.1"
firebaseBom = "32.7.2"
leakcanaryAndroid = "2.13"
okhttp3Bom = "4.12.0"
inject = "1"
Expand Down

0 comments on commit ee601ea

Please sign in to comment.