NikGapps 3.76__py3-none-any.whl → 3.78__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- NikGapps/cache.py +11 -5
- NikGapps/config/NikGappsConfig.py +12 -10
- {nikgapps-3.76.dist-info → nikgapps-3.78.dist-info}/METADATA +1 -1
- {nikgapps-3.76.dist-info → nikgapps-3.78.dist-info}/RECORD +8 -8
- {nikgapps-3.76.dist-info → nikgapps-3.78.dist-info}/WHEEL +0 -0
- {nikgapps-3.76.dist-info → nikgapps-3.78.dist-info}/entry_points.txt +0 -0
- {nikgapps-3.76.dist-info → nikgapps-3.78.dist-info}/licenses/LICENSE +0 -0
- {nikgapps-3.76.dist-info → nikgapps-3.78.dist-info}/top_level.txt +0 -0
NikGapps/cache.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import time
|
|
3
|
+
|
|
2
4
|
from dotenv import load_dotenv
|
|
3
5
|
from NikGapps.build.Build import Build
|
|
4
6
|
from NikGapps.config.NikGappsConfig import NikGappsConfig
|
|
@@ -39,9 +41,7 @@ def cache():
|
|
|
39
41
|
project = gitlab_manager.get_project(cached_url)
|
|
40
42
|
gitattributes = """*.zip filter=lfs diff=lfs merge=lfs -text
|
|
41
43
|
*.tar.xz filter=lfs diff=lfs merge=lfs -text"""
|
|
42
|
-
if project:
|
|
43
|
-
gitlab_manager.reset_repository(cached_url, sleep_for=10, gitattributes=gitattributes)
|
|
44
|
-
else:
|
|
44
|
+
if not project:
|
|
45
45
|
project = gitlab_manager.create_repository(cached_url, provide_owner_access=True)
|
|
46
46
|
gitlab_manager.create_and_commit_file(project_id=project.id, file_path=".gitattributes",
|
|
47
47
|
content=gitattributes)
|
|
@@ -56,6 +56,10 @@ def cache():
|
|
|
56
56
|
config_obj.config_package_list = Build.build_from_directory(app_set_list, android_version)
|
|
57
57
|
for appset in config_obj.config_package_list:
|
|
58
58
|
appset: AppSet
|
|
59
|
+
# delete the folder to reset the files
|
|
60
|
+
if F.dir_exists(os.path.join(repo_cached.working_tree_dir, appset.title)):
|
|
61
|
+
F.remove_dir(os.path.join(repo_cached.working_tree_dir, appset.title))
|
|
62
|
+
F.make_dir(os.path.join(repo_cached.working_tree_dir, appset.title))
|
|
59
63
|
for pkg in appset.package_list:
|
|
60
64
|
pkg: Package
|
|
61
65
|
compression_modes = [Modes.ZIP, Modes.TAR_XZ]
|
|
@@ -66,8 +70,10 @@ def cache():
|
|
|
66
70
|
f"{pkg.package_title}{mode}")
|
|
67
71
|
print("Done!") if CompOps.compress_package(pkg_zip_path, pkg, mode) else print("Failed!")
|
|
68
72
|
t.taken(f"Total time taken to process the {pkg.package_title}, compressing into {mode}")
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
time.sleep(5)
|
|
74
|
+
repo_cached.git_push(
|
|
75
|
+
commit_message=f"Compressed {pkg.package_title} for {appset.title} into {mode}",
|
|
76
|
+
push_untracked_files=True, post_buffer="1048576000")
|
|
71
77
|
if Config.ENVIRONMENT_TYPE.__eq__("production") and F.dir_exists(repo_cached.working_tree_dir):
|
|
72
78
|
F.remove_dir(repo_cached.working_tree_dir)
|
|
73
79
|
|
|
@@ -55,51 +55,53 @@ class NikGappsConfig:
|
|
|
55
55
|
|
|
56
56
|
def build_config_objects(self, config_dict=None):
|
|
57
57
|
config_list = []
|
|
58
|
+
if config_dict is None:
|
|
59
|
+
config_dict = self.config_dict
|
|
58
60
|
default_mode, install_mode = "default", "install"
|
|
59
61
|
enabled_mode, disabled_mode, use_zip_config = 1, 0, self.use_zip_config
|
|
60
62
|
predefined_configs = {
|
|
61
63
|
"AndroidVersion": self.android_version,
|
|
62
64
|
"Version": self.config_version,
|
|
63
65
|
"LogDirectory": {
|
|
64
|
-
"value": default_mode,
|
|
66
|
+
"value": config_dict.get("LogDirectory", default_mode),
|
|
65
67
|
"description": """# set this to the directory you want to copy the logs to.
|
|
66
68
|
# for e.g. LogDirectory="/system/etc" will install the logs to /system/etc/nikgapps_logs directory
|
|
67
69
|
# by default it will install it to /sdcard/NikGapps/nikgapps_logs"""
|
|
68
70
|
},
|
|
69
71
|
"InstallPartition": {
|
|
70
|
-
"value": default_mode,
|
|
72
|
+
"value": config_dict.get("InstallPartition", default_mode),
|
|
71
73
|
"description": "# set to /system, /product or /system_ext if you want to force the installation to aforementioned locations"
|
|
72
74
|
},
|
|
73
75
|
"Mode": {
|
|
74
|
-
"value": install_mode,
|
|
76
|
+
"value": config_dict.get("Mode", install_mode),
|
|
75
77
|
"description": "# set to uninstall if you want to uninstall any google app, also set the value of google app below to -1"
|
|
76
78
|
},
|
|
77
79
|
"WipeDalvikCache": {
|
|
78
|
-
"value": enabled_mode,
|
|
80
|
+
"value": config_dict.get("WipeDalvikCache", enabled_mode),
|
|
79
81
|
"description": "# set WipeDalvikCache=0 if you don't want the installer to wipe dalvik/cache after installing the gapps"
|
|
80
82
|
},
|
|
81
83
|
"WipeRuntimePermissions": {
|
|
82
|
-
"value":
|
|
84
|
+
"value": config_dict.get("WipeRuntimePermissions", enabled_mode),
|
|
83
85
|
"description": "# set WipeRuntimePermissions=1 if you want to wipe runtime permissions"
|
|
84
86
|
},
|
|
85
87
|
"ExecuteBackupRestore": {
|
|
86
|
-
"value": enabled_mode,
|
|
88
|
+
"value": config_dict.get("ExecuteBackupRestore", enabled_mode),
|
|
87
89
|
"description": "# Addon.d config, set it to 0 to skip the automatic backup/restore while flashing the rom"
|
|
88
90
|
},
|
|
89
91
|
"UseZipConfig": {
|
|
90
|
-
"value": use_zip_config,
|
|
92
|
+
"value": config_dict.get("UseZipConfig", use_zip_config),
|
|
91
93
|
"description": "# if you want to force the installer to use the config from gapps zip file, set below to 1"
|
|
92
94
|
},
|
|
93
95
|
"OverwriteWithZipConfig": {
|
|
94
|
-
"value": disabled_mode,
|
|
96
|
+
"value": config_dict.get("OverwriteWithZipConfig", disabled_mode),
|
|
95
97
|
"description": "# if you want to overwrite the config located in /sdcard/NikGapps with gapps zip file, set below to 1. Applicable to decrypted storage only"
|
|
96
98
|
},
|
|
97
99
|
"GmsOptimization": {
|
|
98
|
-
"value": disabled_mode,
|
|
100
|
+
"value": config_dict.get("GmsOptimization", disabled_mode),
|
|
99
101
|
"description": "# set this to 1 if you want to enable gms optimization, careful while doing it, you may experience issues like delayed notification with some Roms"
|
|
100
102
|
},
|
|
101
103
|
"GenerateLogs": {
|
|
102
|
-
"value": enabled_mode,
|
|
104
|
+
"value": config_dict.get("GenerateLogs", enabled_mode),
|
|
103
105
|
"description": "# set this to 0 if you want to skip generating nikgapps logs, if you run into issues, enable it and flash the zip again to get the logs"
|
|
104
106
|
}
|
|
105
107
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
NikGapps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
NikGapps/build_config.py,sha256=QVWmRLUIv1US8OWeBwwiAHLTBu6heMF1aFezsud8Fxw,3193
|
|
3
|
-
NikGapps/cache.py,sha256=
|
|
3
|
+
NikGapps/cache.py,sha256=7z6IODtzW8bEa32KnergLqtViLQD3vBDNQrdIDzLFFA,4316
|
|
4
4
|
NikGapps/config_upload.py,sha256=0HE7txm73XXxat_cR0JDXWtQUmg1IYK_SktwJS6N34s,652
|
|
5
5
|
NikGapps/copy_repos.py,sha256=AXI1LIO_4pXkJUTlIsW45JRpEIkmICPVcCDOJ-YIauk,1951
|
|
6
6
|
NikGapps/main.py,sha256=86OrjdjqZwfdzgrQte6e8ADzGgKms37YaM_QlbY3BlE,2904
|
|
@@ -12,7 +12,7 @@ NikGapps/build/NikGappsOverlays.py,sha256=bbAIuIeE7HICdXRNeZJrvuW58_tUuDH9Du_1k6
|
|
|
12
12
|
NikGapps/build/PackageConstants.py,sha256=QEq8tFngNXoFpNe87k3iBvfaGe1hjP7LCEINtFpnzFA,17763
|
|
13
13
|
NikGapps/build/Release.py,sha256=3YjZ2puzBE_QuaJMXQxRtphX0WGtU4SKYrGDD3RztL0,4944
|
|
14
14
|
NikGapps/build/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
NikGapps/config/NikGappsConfig.py,sha256=
|
|
15
|
+
NikGapps/config/NikGappsConfig.py,sha256=SNGpODuGXq9UadXpfG3BOqQesg33BuU-2fJcQqVzP88,20752
|
|
16
16
|
NikGapps/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
NikGapps/helper/AppSet.py,sha256=vEIwk7NX1LQt71UJ3naEdsekmB_Ea0v8j0CQJkrSTEU,352
|
|
18
18
|
NikGapps/helper/Args.py,sha256=r1KIKs1x9DbIPwqBPmfIb3BBD5PvclvUDIv3D-fvy2A,4338
|
|
@@ -54,9 +54,9 @@ NikGapps/helper/overlay/Resources.py,sha256=bKWJEF2avl3j2ud390HQq9fRMMA8GKh9-KAB
|
|
|
54
54
|
NikGapps/helper/overlay/String.py,sha256=nyCAD_dNfwHlOgj4zuKGGz71n20CLEKyZCgrVAmiX2I,469
|
|
55
55
|
NikGapps/helper/overlay/StringArray.py,sha256=DYPEAIdpicaJ3C08IYW6Q2tnTH6gUFXmu3KhQlHGY5g,563
|
|
56
56
|
NikGapps/helper/overlay/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
|
-
nikgapps-3.
|
|
58
|
-
nikgapps-3.
|
|
59
|
-
nikgapps-3.
|
|
60
|
-
nikgapps-3.
|
|
61
|
-
nikgapps-3.
|
|
62
|
-
nikgapps-3.
|
|
57
|
+
nikgapps-3.78.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
58
|
+
nikgapps-3.78.dist-info/METADATA,sha256=BsE4v_m4tt6PnXouHqb0q9briPeUmC3wj92mfqmVyLo,4343
|
|
59
|
+
nikgapps-3.78.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
60
|
+
nikgapps-3.78.dist-info/entry_points.txt,sha256=iKbeOiuELwTDu5kmQHrU9XBVASWRR6_TuRIRva2UnAY,286
|
|
61
|
+
nikgapps-3.78.dist-info/top_level.txt,sha256=CD7RpCb7bzjyvpQLt8hh2gU6X1wj3Z0NIErVkg-nJI4,9
|
|
62
|
+
nikgapps-3.78.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|