feat: appendLog同步输出到android.util.Log(GCA-OTA tag)
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,6 +16,7 @@ import java.io.FileOutputStream
|
|||||||
import java.net.HttpURLConnection
|
import java.net.HttpURLConnection
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
import java.security.MessageDigest
|
import java.security.MessageDigest
|
||||||
|
import android.util.Log
|
||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
|
|
||||||
class MainActivity : AppCompatActivity() {
|
class MainActivity : AppCompatActivity() {
|
||||||
@@ -101,9 +102,12 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun appendLog(msg: String) {
|
private fun appendLog(msg: String) {
|
||||||
|
Log.i(TAG, msg)
|
||||||
runOnUiThread { logView.append("$msg\n") }
|
runOnUiThread { logView.append("$msg\n") }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
companion object { private const val TAG = "GCA-OTA" }
|
||||||
|
|
||||||
private fun manifestUrl(channel: String): String {
|
private fun manifestUrl(channel: String): String {
|
||||||
val base = "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/raw/branch/main/ota"
|
val base = "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/raw/branch/main/ota"
|
||||||
return when (channel) {
|
return when (channel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user