feat: embed standalone local server runtime with Chaquopy Python, auto-installer, and Android 4.6.53 hotfix
This commit is contained in:
1 parent
17bcc1adbf
commit
1f88f6ea38
40 files changed
+6036
-32
No files matched your search
@@ -4,6 +4,8 @@ import android.app.Application
|
||||
import android.app.NotificationChannel
|
||||
import android.app.NotificationManager
|
||||
import android.os.Build
|
||||
import com.chaquo.python.Python
|
||||
import com.chaquo.python.android.AndroidPlatform
|
||||
|
||||
class GaCyApplication : Application() {
|
||||
|
||||
@@ -18,6 +20,11 @@ class GaCyApplication : Application() {
|
||||
super.onCreate()
|
||||
instance = this
|
||||
createNotificationChannel()
|
||||
|
||||
// Initialize embedded Python runtime
|
||||
if (!Python.isStarted()) {
|
||||
Python.start(AndroidPlatform(this))
|
||||
}
|
||||
}
|
||||
|
||||
private fun createNotificationChannel() {
|
||||
|
||||
Reference in new issue
Block a user