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