Integrates the ZaStoGram Python plugin engine: embeds Chaquopy (CPython 3.11) and Pine (ART/Xposed-compatible hooking). Adds host-side Java implementation under TMessagesProj/src/main/java/org/telegram/plugins (PluginsController, PluginContext, PluginInfo, PluginUtils, PluginRequestInterceptor) to handle discovery, install/load/unload, settings bridge, request interception and hook lifecycle. Updates Gradle: apply Chaquopy plugin, add chaquopy gradle classpath, add Pine dependencies, configure Chaquopy (3.11, readable .py), and raise minSdkVersion to 24 across library and app modules to satisfy Chaquopy requirements.
21 lines
No EOL
815 B
Groovy
21 lines
No EOL
815 B
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:8.6.1'
|
|
classpath 'com.google.gms:google-services:4.3.15'
|
|
classpath 'com.huawei.agconnect:agcp:1.9.1.301'
|
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.0'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20"
|
|
// ZaStoGram plugin engine: Chaquopy embeds CPython 3.11 into the APK.
|
|
// 16.1.x supports AGP 7.0-8.13 (we use 8.6.1) and Python 3.8-3.13.
|
|
classpath 'com.chaquo.python:gradle:16.1.0'
|
|
}
|
|
}
|
|
repositories {
|
|
google()
|
|
} |