NikGapps 3.97__tar.gz → 3.99__tar.gz
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-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/ApkMetaInfo.py +5 -5
- {nikgapps-3.97 → nikgapps-3.99/NikGapps.egg-info}/PKG-INFO +10 -10
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps.egg-info/SOURCES.txt +1 -0
- nikgapps-3.99/NikGapps.egg-info/requires.txt +13 -0
- {nikgapps-3.97/NikGapps.egg-info → nikgapps-3.99}/PKG-INFO +10 -10
- {nikgapps-3.97 → nikgapps-3.99}/setup.py +10 -10
- nikgapps-3.99/tests/test_apk_meta_info.py +46 -0
- nikgapps-3.97/NikGapps.egg-info/requires.txt +0 -13
- {nikgapps-3.97 → nikgapps-3.99}/LICENSE +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/MANIFEST.in +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/build/Build.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/build/NikGappsManager.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/build/NikGappsOverlays.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/build/PackageConstants.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/build/Release.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/build/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/build_config.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/cache.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/config/NikGappsConfig.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/config/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/config_upload.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/copy_repos.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/AppSet.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/Args.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/Assets.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/Config.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/ConfigObj.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/Package.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/addon.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/appsets.json +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/changelogs.yaml +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/config_versions.json +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/customize.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/debloater.config +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/functions.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/gofile.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/header.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/installer.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/magisk-update-binary.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/module.prop +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/mount.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/mtg_mount.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/nikgapps.config +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/nikgapps_functions.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/packages.json +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/uninstaller.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/assets/unmount.sh +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/compression/CompOps.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/compression/Export.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/compression/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/git/TestGit.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/git/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/Bool.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/Library.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/Manifest.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/Overlay.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/Resources.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/String.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/StringArray.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/helper/overlay/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/main.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/overlay_control.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps/test.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps.egg-info/dependency_links.txt +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps.egg-info/entry_points.txt +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/NikGapps.egg-info/top_level.txt +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/README.md +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/__main__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/apk.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/archive.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/cli.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/compat.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/config.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/consumer.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/errors.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/gitlab.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/models.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/pipeline.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/scanner.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/upgrade.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_package_pipeline/util.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_registry/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_registry/__main__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_registry/cli.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/nikgapps_registry/service.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/setup.cfg +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/tests_package_pipeline/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/tests_package_pipeline/test_consumer.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/tests_package_pipeline/test_overlay_control.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/tests_package_pipeline/test_pipeline.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/tests_package_pipeline/test_upgrade.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/tests_registry/__init__.py +0 -0
- {nikgapps-3.97 → nikgapps-3.99}/tests_registry/test_registry.py +0 -0
|
@@ -7,10 +7,10 @@ from niklibrary.helper.Statics import Statics
|
|
|
7
7
|
class ApkMetaInfo:
|
|
8
8
|
def __init__(self, apk_file_name, android_version):
|
|
9
9
|
self.apkFileName = apk_file_name
|
|
10
|
-
self.minSdkVersion = Statics.get_android_sdk(android_version)
|
|
10
|
+
self.minSdkVersion = int(Statics.get_android_sdk(android_version))
|
|
11
11
|
self.targetSdkVersion = self.minSdkVersion
|
|
12
12
|
self.versionCode = self.minSdkVersion
|
|
13
|
-
self.versionName = android_version
|
|
13
|
+
self.versionName = str(android_version)
|
|
14
14
|
|
|
15
15
|
def to_dict(self):
|
|
16
16
|
return {
|
|
@@ -19,8 +19,8 @@ class ApkMetaInfo:
|
|
|
19
19
|
'compressionType': False,
|
|
20
20
|
'doNotCompress': ['resources.arsc'],
|
|
21
21
|
'isFrameworkApk': False,
|
|
22
|
-
'
|
|
23
|
-
'
|
|
22
|
+
'resourcesInfo': {
|
|
23
|
+
'packageId': 127,
|
|
24
24
|
'renameManifestPackage': None,
|
|
25
25
|
},
|
|
26
26
|
'sdkInfo': {
|
|
@@ -34,7 +34,7 @@ class ApkMetaInfo:
|
|
|
34
34
|
'ids': [1],
|
|
35
35
|
'tag': None,
|
|
36
36
|
},
|
|
37
|
-
'version': '
|
|
37
|
+
'version': '3.0.2',
|
|
38
38
|
'versionInfo': {
|
|
39
39
|
'versionCode': self.versionCode,
|
|
40
40
|
'versionName': self.versionName,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: NikGapps
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.99
|
|
4
4
|
Summary: A short description of your project
|
|
5
5
|
Home-page: https://github.com/nikgapps/project
|
|
6
6
|
Author: Nikhil Menghani
|
|
@@ -11,18 +11,18 @@ Requires-Python: >=3.12
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Requires-Dist: colorama~=0.4.6
|
|
14
|
-
Requires-Dist: pytz~=
|
|
15
|
-
Requires-Dist: requests~=2.
|
|
14
|
+
Requires-Dist: pytz~=2026.4
|
|
15
|
+
Requires-Dist: requests~=2.34.2
|
|
16
16
|
Requires-Dist: PyYAML~=6.0.3
|
|
17
17
|
Requires-Dist: psutil~=7.2.2
|
|
18
|
-
Requires-Dist: setuptools~=
|
|
18
|
+
Requires-Dist: setuptools~=84.0.0
|
|
19
19
|
Requires-Dist: pexpect~=4.9.0
|
|
20
|
-
Requires-Dist: GitPython~=3.1.
|
|
21
|
-
Requires-Dist: PyGithub~=2.
|
|
22
|
-
Requires-Dist: python-gitlab~=8.
|
|
23
|
-
Requires-Dist: cryptography~=
|
|
24
|
-
Requires-Dist: python-dotenv~=1.2.
|
|
25
|
-
Requires-Dist: niklibrary~=0.
|
|
20
|
+
Requires-Dist: GitPython~=3.1.62
|
|
21
|
+
Requires-Dist: PyGithub~=2.10.0
|
|
22
|
+
Requires-Dist: python-gitlab~=8.6.0
|
|
23
|
+
Requires-Dist: cryptography~=50.0.1
|
|
24
|
+
Requires-Dist: python-dotenv~=1.2.3
|
|
25
|
+
Requires-Dist: niklibrary~=0.58
|
|
26
26
|
Dynamic: author
|
|
27
27
|
Dynamic: author-email
|
|
28
28
|
Dynamic: classifier
|
|
@@ -83,6 +83,7 @@ nikgapps_registry/__init__.py
|
|
|
83
83
|
nikgapps_registry/__main__.py
|
|
84
84
|
nikgapps_registry/cli.py
|
|
85
85
|
nikgapps_registry/service.py
|
|
86
|
+
tests/test_apk_meta_info.py
|
|
86
87
|
tests_package_pipeline/__init__.py
|
|
87
88
|
tests_package_pipeline/test_consumer.py
|
|
88
89
|
tests_package_pipeline/test_overlay_control.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: NikGapps
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.99
|
|
4
4
|
Summary: A short description of your project
|
|
5
5
|
Home-page: https://github.com/nikgapps/project
|
|
6
6
|
Author: Nikhil Menghani
|
|
@@ -11,18 +11,18 @@ Requires-Python: >=3.12
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Requires-Dist: colorama~=0.4.6
|
|
14
|
-
Requires-Dist: pytz~=
|
|
15
|
-
Requires-Dist: requests~=2.
|
|
14
|
+
Requires-Dist: pytz~=2026.4
|
|
15
|
+
Requires-Dist: requests~=2.34.2
|
|
16
16
|
Requires-Dist: PyYAML~=6.0.3
|
|
17
17
|
Requires-Dist: psutil~=7.2.2
|
|
18
|
-
Requires-Dist: setuptools~=
|
|
18
|
+
Requires-Dist: setuptools~=84.0.0
|
|
19
19
|
Requires-Dist: pexpect~=4.9.0
|
|
20
|
-
Requires-Dist: GitPython~=3.1.
|
|
21
|
-
Requires-Dist: PyGithub~=2.
|
|
22
|
-
Requires-Dist: python-gitlab~=8.
|
|
23
|
-
Requires-Dist: cryptography~=
|
|
24
|
-
Requires-Dist: python-dotenv~=1.2.
|
|
25
|
-
Requires-Dist: niklibrary~=0.
|
|
20
|
+
Requires-Dist: GitPython~=3.1.62
|
|
21
|
+
Requires-Dist: PyGithub~=2.10.0
|
|
22
|
+
Requires-Dist: python-gitlab~=8.6.0
|
|
23
|
+
Requires-Dist: cryptography~=50.0.1
|
|
24
|
+
Requires-Dist: python-dotenv~=1.2.3
|
|
25
|
+
Requires-Dist: niklibrary~=0.58
|
|
26
26
|
Dynamic: author
|
|
27
27
|
Dynamic: author-email
|
|
28
28
|
Dynamic: classifier
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="NikGapps",
|
|
5
|
-
version="3.
|
|
5
|
+
version="3.99",
|
|
6
6
|
packages=find_packages(),
|
|
7
7
|
include_package_data=True,
|
|
8
8
|
package_data={
|
|
@@ -17,18 +17,18 @@ setup(
|
|
|
17
17
|
url="https://github.com/nikgapps/project",
|
|
18
18
|
install_requires=[
|
|
19
19
|
'colorama~=0.4.6',
|
|
20
|
-
'pytz~=
|
|
21
|
-
'requests~=2.
|
|
20
|
+
'pytz~=2026.4',
|
|
21
|
+
'requests~=2.34.2',
|
|
22
22
|
'PyYAML~=6.0.3',
|
|
23
23
|
'psutil~=7.2.2',
|
|
24
|
-
'setuptools~=
|
|
24
|
+
'setuptools~=84.0.0',
|
|
25
25
|
'pexpect~=4.9.0',
|
|
26
|
-
'GitPython~=3.1.
|
|
27
|
-
'PyGithub~=2.
|
|
28
|
-
'python-gitlab~=8.
|
|
29
|
-
'cryptography~=
|
|
30
|
-
'python-dotenv~=1.2.
|
|
31
|
-
'niklibrary~=0.
|
|
26
|
+
'GitPython~=3.1.62',
|
|
27
|
+
'PyGithub~=2.10.0',
|
|
28
|
+
'python-gitlab~=8.6.0',
|
|
29
|
+
'cryptography~=50.0.1',
|
|
30
|
+
'python-dotenv~=1.2.3',
|
|
31
|
+
'niklibrary~=0.58'
|
|
32
32
|
],
|
|
33
33
|
entry_points={
|
|
34
34
|
'console_scripts': [
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import tempfile
|
|
2
|
+
import unittest
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import yaml
|
|
6
|
+
|
|
7
|
+
from NikGapps.helper.overlay.ApkMetaInfo import ApkMetaInfo
|
|
8
|
+
from niklibrary.helper.Statics import Statics
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ApkMetaInfoTests(unittest.TestCase):
|
|
12
|
+
def setUp(self):
|
|
13
|
+
self.original_android_17 = Statics.android_versions.get("17")
|
|
14
|
+
Statics.android_versions["17"] = {"sdk": "37", "code": "CinnamonBun"}
|
|
15
|
+
|
|
16
|
+
def tearDown(self):
|
|
17
|
+
if self.original_android_17 is None:
|
|
18
|
+
Statics.android_versions.pop("17", None)
|
|
19
|
+
else:
|
|
20
|
+
Statics.android_versions["17"] = self.original_android_17
|
|
21
|
+
|
|
22
|
+
def test_apktool_3_metadata_uses_numeric_sdk_fields(self):
|
|
23
|
+
metadata = ApkMetaInfo("ExampleOverlay.apk", "17").to_dict()
|
|
24
|
+
|
|
25
|
+
self.assertEqual(37, metadata["sdkInfo"]["minSdkVersion"])
|
|
26
|
+
self.assertEqual(37, metadata["sdkInfo"]["targetSdkVersion"])
|
|
27
|
+
self.assertEqual(37, metadata["versionInfo"]["versionCode"])
|
|
28
|
+
self.assertEqual(
|
|
29
|
+
{"packageId": 127, "renameManifestPackage": None},
|
|
30
|
+
metadata["resourcesInfo"],
|
|
31
|
+
)
|
|
32
|
+
self.assertNotIn("packageInfo", metadata)
|
|
33
|
+
|
|
34
|
+
def test_written_metadata_round_trips_numbers_as_numbers(self):
|
|
35
|
+
with tempfile.TemporaryDirectory() as directory:
|
|
36
|
+
ApkMetaInfo("ExampleOverlay.apk", "17").write(directory, "apktool.yml")
|
|
37
|
+
metadata = yaml.safe_load(
|
|
38
|
+
Path(directory, "apktool.yml").read_text(encoding="utf-8")
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
self.assertIsInstance(metadata["sdkInfo"]["minSdkVersion"], int)
|
|
42
|
+
self.assertIsInstance(metadata["versionInfo"]["versionCode"], int)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__ == "__main__":
|
|
46
|
+
unittest.main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|