-
Notifications
You must be signed in to change notification settings - Fork 18
/
build_variants.py
63 lines (56 loc) · 1.49 KB
/
build_variants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from apkmirror import Version
from utils import patch_apk
def build_apks(latest_version: Version):
# patch
apk = "big_file_merged.apk"
integrations = "bins/integrations.apk"
patches = "bins/patches.jar"
cli = "bins/cli.jar"
common_includes = [
"Enable app downgrading",
"Hide FAB",
"Disable chirp font",
"Add ability to copy media link",
"Hide Banner",
"Hide promote button",
"Hide Community Notes",
"Delete from database",
"Customize Navigation Bar items",
"Remove premium upsell",
"Control video auto scroll",
"Force enable translate",
]
patch_apk(
cli,
integrations,
patches,
apk,
includes=common_includes,
out=f"x-piko-material-you-v{latest_version.version}.apk",
)
patch_apk(
cli,
integrations,
patches,
apk,
includes=common_includes,
excludes=["Dynamic color"],
out=f"x-piko-v{latest_version.version}.apk",
)
patch_apk(
cli,
integrations,
patches,
apk,
includes=["Bring back twitter"] + common_includes,
out=f"twitter-piko-material-you-v{latest_version.version}.apk",
)
patch_apk(
cli,
integrations,
patches,
apk,
includes=["Bring back twitter"] + common_includes,
excludes=["Dynamic color"],
out=f"twitter-piko-v{latest_version.version}.apk",
)