mirror of
https://github.com/dyhkwong/Exclave.git
synced 2026-06-21 06:06:22 +08:00
53fa2ed2315ee8c78c815948bb5dddab0bddfa7a
…
…
SagerNet for Android
The universal proxy toolchain for Android, written in Kotlin.
License
Copyright (C) 2021 by nekohasekai <contact-sagernet@sekai.icu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Build
- Install and configure JDK, Android SDK, Android NDK, Go and Go Mobile.
git clonethis project and at least submodulelibrary/core.- Replace
release.keystore(can be generated by Javakeytool) with your own. - Append these to your
local.properties
KEYSTORE_PASS=your_keystore_pass
ALIAS_NAME=your_alias_name
ALIAS_PASS=your_alias_pass
- Build APK:
./run lib core
./gradlew assembleOssRelease
- APK files will be in
app/build/outputs/apk. - Build plugin:
./gradlew :plugin:[plugin_name]:assembleOssRelease
- Plugin files will be in
plugin/[plugin_name]/build/outputs/apk. - To build another flavor, replace
Osswith a flavor name.
Languages
Kotlin
87.5%
Java
11.7%
AIDL
0.4%
Shell
0.3%