This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Config.py
81 lines (62 loc) · 2.74 KB
/
Config.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import os
ANDROID_VERSIONS = {
'10': {'sdk': '29', 'code': 'Q'}
, '11': {'sdk': '30', 'code': 'R'}
, '12': {'sdk': '31', 'code': 'S'}
, '12.1': {'sdk': '32', 'code': 'SL'}
, '13': {'sdk': '33', 'code': 'T'}
}
# The android version that we're targeting this application to run
TARGET_ANDROID_VERSION = 13
# Release type defines the release
# Possible values are [ 'canary', 'stable' ]
RELEASE_TYPE = "stable"
release_type = os.environ.get('RELEASE_TYPE')
if release_type is not None:
RELEASE_TYPE = release_type
# Environment type differentiates the experimental and stable features
# Possible values are [ 'production', 'development' ]
ENVIRONMENT_TYPE = "production"
environment_type = os.environ.get('ENVIRONMENT_TYPE')
if environment_type is not None:
ENVIRONMENT_TYPE = environment_type
# Possible Values are ['go', 'core', 'basic', 'omni', 'stock', 'full', 'addons', 'addonsets']
BUILD_PACKAGE_LIST = ['go', 'core', 'basic', 'omni', 'stock', 'full', 'addons', 'addonsets']
# Send the zip to device after creation, Possible values are True and False
SEND_ZIP_DEVICE = True
if ENVIRONMENT_TYPE.__eq__("production"):
SEND_ZIP_DEVICE = False
# This will allow the program to sign the zip
SIGN_ZIP = True
# When Fresh Build is True, the installer will freshly build the zip (Comparatively Slower)
# When Fresh Build is False, the installer picks up existing zip and builds gapps package (Faster)
FRESH_BUILD = True
# DEBUG_MODE will be helpful in printing more stuff so program can be debugged
DEBUG_MODE = True
if ENVIRONMENT_TYPE.__eq__("production"):
DEBUG_MODE = False
# True if we want the files to upload as soon as they get created
UPLOAD_FILES = True
# Override the execution if we re-trigger the workflow
OVERRIDE_RELEASE = False
# Git Check enables controlled releases.
# If this is set to True, new release will only happen when there is a change in the source repo or apk is updated
GIT_CHECK = True
GIT_PUSH = True
# Enabling this will enable the feature of building NikGapps using config file
BUILD_CONFIG = True
BUILD_EXCLUSIVE = (RELEASE_TYPE.lower().__eq__("stable"))
EXCLUSIVE_FOLDER = "Elite"
# Possible Values are ['fetch', 'build']
# PROJECT_MODE = "fetch"
PROJECT_MODE = "build"
# This will help fetch the files which requires root access such as overlay files
ADB_ROOT_ENABLED = False
# Fetch Package is the package you wish to pull from your device
# Possible Values are ['core', 'basic', 'omni', 'stock', 'full', 'ultra', 'addons', 'addonsets', '<addon>'
# (for e.g 'YouTube')]
FETCH_PACKAGE = "core"
TELEGRAM_BOT_TOKEN = os.environ.get('TELEGRAM_BOT_TOKEN')
TELEGRAM_CHAT_ID = os.environ.get('TELEGRAM_CHAT_ID')
NIKGAPPS_CHAT_ID = os.environ.get('NIKGAPPS_CHAT_ID')
MESSAGE_THREAD_ID = os.environ.get('MESSAGE_THREAD_ID')