NikGapps 3.16__tar.gz → 3.18__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.16 → nikgapps-3.18}/NikGapps/build/NikGappsManager.py +20 -1
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/build/NikGappsOverlays.py +3 -2
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/Statics.py +4 -4
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/config_versions.json +2 -1
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/git/GitlabManager.py +13 -12
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/Library.py +4 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/overlay_control.py +2 -2
- {nikgapps-3.16 → nikgapps-3.18/NikGapps.egg-info}/PKG-INFO +1 -1
- {nikgapps-3.16/NikGapps.egg-info → nikgapps-3.18}/PKG-INFO +1 -1
- {nikgapps-3.16 → nikgapps-3.18}/setup.py +1 -1
- {nikgapps-3.16 → nikgapps-3.18}/LICENSE +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/MANIFEST.in +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/build/Build.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/build/NikGappsPackages.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/build/PackageConstants.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/build/Release.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/build/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/build_config.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/cache.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/config/NikGappsConfig.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/config/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/config_upload.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/copy_repos.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/AppSet.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/Args.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/Assets.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/B64.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/C.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/Cmd.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/Config.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/ConfigObj.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/FileOp.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/Json.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/P.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/Package.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/SystemStat.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/T.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/XmlOp.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/NikGappsZipSigner.jar +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/addon.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/apksigner.jar +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/apktool_2.9.3.jar +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/appsets.json +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Darwin/aapt2 +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Linux/aapt2 +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Linux/dex-tools-2.2-SNAPSHOT-2021-10-31.zip +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Linux/jd-gui-1.6.6-min.jar +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Windows/AdbWinApi.dll +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Windows/AdbWinUsbApi.dll +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Windows/aapt.exe +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Windows/aapt2.exe +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Windows/aapt_64.exe +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/bin/Windows/adb.exe +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/busybox +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/cert.pk8 +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/cert.x509.pem +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/changelogs.yaml +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/customize.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/debloater.config +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/functions.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/gofile.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/header.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/installer.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/magisk-update-binary.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/module.prop +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/mount.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/mtg_mount.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/nikgapps.config +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/nikgapps_functions.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/packages.json +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/private_key.pem +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/uninstaller.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/unmount.sh +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/assets/update-binary-busybox +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/compression/CompOps.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/compression/Export.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/compression/Modes.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/compression/Tar.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/compression/Zip.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/compression/Zsh.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/compression/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/git/Git.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/git/GitOperations.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/git/GitStatics.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/git/GithubManager.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/git/TestGit.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/git/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/ApkMetaInfo.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/Bool.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/Manifest.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/Overlay.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/Resources.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/String.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/StringArray.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/overlay/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/upload/CmdUpload.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/upload/GoFileUpload.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/upload/Upload.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/upload/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/web/Requests.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/web/TelegramApi.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/helper/web/__init__.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/main.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps/test.py +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps.egg-info/SOURCES.txt +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps.egg-info/dependency_links.txt +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps.egg-info/entry_points.txt +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps.egg-info/requires.txt +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/NikGapps.egg-info/top_level.txt +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/README.md +0 -0
- {nikgapps-3.16 → nikgapps-3.18}/setup.cfg +0 -0
|
@@ -171,114 +171,133 @@ class NikGappsManager:
|
|
|
171
171
|
package_overlays = {
|
|
172
172
|
"com.google.android.gms": [
|
|
173
173
|
{
|
|
174
|
+
"package_title": "GmsCore",
|
|
174
175
|
"package_name": "com.nikgapps.overlay.gmscore",
|
|
175
176
|
"resources": Library.get_gms_core_resources()
|
|
176
177
|
}
|
|
177
178
|
],
|
|
178
179
|
"com.google.android.dialer": [
|
|
179
180
|
{
|
|
181
|
+
"package_title": "GoogleDialer",
|
|
180
182
|
"package_name": "com.nikgapps.overlay.dialer",
|
|
181
183
|
"resources": Library.get_google_dialer_resources()
|
|
182
184
|
}
|
|
183
185
|
],
|
|
184
186
|
"com.google.android.contacts": [
|
|
185
187
|
{
|
|
188
|
+
"package_title": "GoogleContacts",
|
|
186
189
|
"package_name": "com.nikgapps.overlay.contacts",
|
|
187
190
|
"resources": Library.get_google_contacts_resources()
|
|
188
191
|
}
|
|
189
192
|
],
|
|
190
193
|
"com.google.android.tts": [
|
|
191
194
|
{
|
|
195
|
+
"package_title": "GoogleTTS",
|
|
192
196
|
"package_name": "com.nikgapps.overlay.googletts",
|
|
193
197
|
"resources": Library.get_google_tts_resources()
|
|
194
198
|
}
|
|
195
199
|
],
|
|
196
200
|
"com.google.android.apps.wellbeing": [
|
|
197
201
|
{
|
|
202
|
+
"package_title": "DigitalWellbeing",
|
|
198
203
|
"package_name": "com.nikgapps.overlay.wellbeing",
|
|
199
204
|
"resources": Library.get_digital_wellbeing_resources()
|
|
200
205
|
}
|
|
201
206
|
],
|
|
202
207
|
"com.google.android.marvin.talkback": [
|
|
203
208
|
{
|
|
209
|
+
"package_title": "GoogleTalkback",
|
|
204
210
|
"package_name": "com.nikgapps.overlay.talkback",
|
|
205
211
|
"resources": Library.get_google_talkback_resources()
|
|
206
212
|
}
|
|
207
213
|
],
|
|
208
214
|
"com.google.android.flipendo": [
|
|
209
215
|
{
|
|
216
|
+
"package_title": "Flipendo",
|
|
210
217
|
"package_name": "com.nikgapps.overlay.flipendo",
|
|
211
218
|
"resources": Library.get_flipendo_resources()
|
|
212
219
|
}
|
|
213
220
|
],
|
|
214
221
|
"com.google.android.apps.messaging": [
|
|
215
222
|
{
|
|
223
|
+
"package_title": "GoogleMessages",
|
|
216
224
|
"package_name": "com.nikgapps.overlay.messages",
|
|
217
225
|
"resources": Library.get_google_messages_resources()
|
|
218
226
|
}
|
|
219
227
|
],
|
|
220
228
|
"com.google.android.gms.location.history": [
|
|
221
229
|
{
|
|
230
|
+
"package_title": "GoogleLocationHistory",
|
|
222
231
|
"package_name": "com.nikgapps.overlay.googlelocationhistory",
|
|
223
232
|
"resources": Library.get_google_location_history_resources()
|
|
224
233
|
}
|
|
225
234
|
],
|
|
226
235
|
"com.google.android.apps.photos": [
|
|
227
236
|
{
|
|
237
|
+
"package_title": "GooglePhotos",
|
|
228
238
|
"package_name": "com.nikgapps.overlay.googlephotos",
|
|
229
239
|
"resources": Library.get_google_photos_resources()
|
|
230
240
|
}
|
|
231
241
|
],
|
|
232
242
|
"com.google.android.settings.intelligence": [
|
|
233
243
|
{
|
|
244
|
+
"package_title": "SettingsServices",
|
|
234
245
|
"package_name": "com.nikgapps.overlay.settingsintelligence",
|
|
235
246
|
"resources": Library.get_settings_services_resources(self.android_version)
|
|
236
247
|
}
|
|
237
248
|
],
|
|
238
249
|
"com.google.android.projection.gearhead": [
|
|
239
250
|
{
|
|
251
|
+
"package_title": "AndroidAuto",
|
|
240
252
|
"package_name": "com.nikgapps.overlay.androidauto",
|
|
241
253
|
"resources": Library.get_android_auto_resources()
|
|
242
254
|
}
|
|
243
255
|
],
|
|
244
256
|
"com.google.android.apps.nexuslauncher": [
|
|
245
257
|
{
|
|
258
|
+
"package_title": "PixelLauncher",
|
|
246
259
|
"package_name": "com.nikgapps.overlay.pixellauncher",
|
|
247
260
|
"resources": Library.get_pixel_launcher_resources()
|
|
248
261
|
}
|
|
249
262
|
],
|
|
250
263
|
"com.google.android.googlequicksearchbox": [
|
|
251
264
|
{
|
|
265
|
+
"package_title": "Velvet",
|
|
252
266
|
"package_name": "com.nikgapps.overlay.googlequicksearchbox",
|
|
253
267
|
"resources": Library.get_velvet_resources()
|
|
254
268
|
}
|
|
255
269
|
],
|
|
256
270
|
"com.google.android.deskclock": [
|
|
257
271
|
{
|
|
272
|
+
"package_title": "GoogleClock",
|
|
258
273
|
"package_name": "com.nikgapps.overlay.googleclock",
|
|
259
274
|
"resources": Library.get_google_clock_resources()
|
|
260
275
|
}
|
|
261
276
|
],
|
|
262
277
|
"com.google.android.as": [
|
|
263
278
|
{
|
|
279
|
+
"package_title": "DevicePersonalizationServices",
|
|
264
280
|
"package_name": "com.nikgapps.overlay.ais",
|
|
265
281
|
"resources": Library.get_devices_personalization_services_resources()
|
|
266
282
|
}
|
|
267
283
|
],
|
|
268
284
|
"com.google.android.wallpaper.effects": [
|
|
269
285
|
{
|
|
286
|
+
"package_title": "CinematicEffect",
|
|
270
287
|
"package_name": "com.nikgapps.overlay.cinematiceffect",
|
|
271
288
|
"resources": Library.get_cinematic_effect_resources()
|
|
272
289
|
}
|
|
273
290
|
],
|
|
274
291
|
"com.google.android.apps.youtube.music": [
|
|
275
292
|
{
|
|
293
|
+
"package_title": "YouTubeMusic",
|
|
276
294
|
"package_name": "com.nikgapps.overlay.youtubemusic",
|
|
277
295
|
"resources": Library.get_youtube_music_resources()
|
|
278
296
|
}
|
|
279
297
|
]
|
|
280
298
|
}
|
|
281
|
-
return [Overlay(
|
|
299
|
+
return [Overlay(overlay["package_title"], overlay["package_name"], self.android_version, overlay["resources"],
|
|
300
|
+
overlay["package_title"]) for overlay
|
|
282
301
|
in package_overlays.get(package_name, [])]
|
|
283
302
|
|
|
284
303
|
def get_go_package(self):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from NikGapps.
|
|
1
|
+
from NikGapps.config.NikGappsConfig import NikGappsConfig
|
|
2
2
|
from NikGapps.helper.overlay.Overlay import Overlay
|
|
3
3
|
|
|
4
4
|
|
|
@@ -7,7 +7,8 @@ class NikGappsOverlays:
|
|
|
7
7
|
@staticmethod
|
|
8
8
|
def get_overlay(android_version):
|
|
9
9
|
overlay_list = []
|
|
10
|
-
|
|
10
|
+
config_obj = NikGappsConfig(android_version=android_version)
|
|
11
|
+
for packages in config_obj.package_manager.get_packages("all"):
|
|
11
12
|
for pkg in packages.package_list:
|
|
12
13
|
for overlay in pkg.overlay_list:
|
|
13
14
|
overlay: Overlay
|
|
@@ -106,19 +106,19 @@ class Statics:
|
|
|
106
106
|
|
|
107
107
|
@staticmethod
|
|
108
108
|
def get_overlay_source_directory(android_version):
|
|
109
|
-
return Statics.pwd + os.path.sep + f"overlays_{
|
|
109
|
+
return Statics.pwd + os.path.sep + f"overlays_{android_version}_source"
|
|
110
110
|
|
|
111
111
|
@staticmethod
|
|
112
112
|
def get_overlay_source_repo(android_version):
|
|
113
|
-
return f"git@
|
|
113
|
+
return f"git@gitlab.com:nikgapps/overlays_{android_version}_source.git"
|
|
114
114
|
|
|
115
115
|
@staticmethod
|
|
116
116
|
def get_overlay_directory(android_version):
|
|
117
|
-
return Statics.pwd + os.path.sep + f"overlays_{
|
|
117
|
+
return Statics.pwd + os.path.sep + f"overlays_{android_version}"
|
|
118
118
|
|
|
119
119
|
@staticmethod
|
|
120
120
|
def get_overlay_repo(android_version):
|
|
121
|
-
return f"git@
|
|
121
|
+
return f"git@gitlab.com:nikgapps/overlays_{android_version}.git"
|
|
122
122
|
|
|
123
123
|
@staticmethod
|
|
124
124
|
def get_temp_overlay_directory(android_version):
|
|
@@ -6,6 +6,7 @@ from pathlib import Path
|
|
|
6
6
|
import gitlab
|
|
7
7
|
|
|
8
8
|
from NikGapps.helper.FileOp import FileOp
|
|
9
|
+
from NikGapps.helper.P import P
|
|
9
10
|
from NikGapps.helper.Statics import Statics
|
|
10
11
|
from NikGapps.helper.git.GitOperations import GitOperations
|
|
11
12
|
|
|
@@ -41,7 +42,7 @@ class GitLabManager:
|
|
|
41
42
|
gitattributes = ""
|
|
42
43
|
for extn in extn_list:
|
|
43
44
|
gitattributes += f"*.{extn} filter=lfs diff=lfs merge=lfs -text\n"
|
|
44
|
-
|
|
45
|
+
self.create_and_commit_file(project_id=project.id, file_path=".gitattributes", content=gitattributes)
|
|
45
46
|
return project
|
|
46
47
|
|
|
47
48
|
def provide_owner_access(self, project_id, user_id):
|
|
@@ -51,7 +52,7 @@ class GitLabManager:
|
|
|
51
52
|
'user_id': user_id,
|
|
52
53
|
'access_level': 50
|
|
53
54
|
})
|
|
54
|
-
|
|
55
|
+
P.green(f"Owner access provided to user with ID {user_id}.")
|
|
55
56
|
return member
|
|
56
57
|
|
|
57
58
|
def get_project(self, project_name):
|
|
@@ -79,8 +80,8 @@ class GitLabManager:
|
|
|
79
80
|
]
|
|
80
81
|
}
|
|
81
82
|
commit = project.commits.create(commit_data)
|
|
82
|
-
|
|
83
|
-
print(commit)
|
|
83
|
+
P.green(f"README.md created and committed to the repository {project.name}.")
|
|
84
|
+
# print(commit)
|
|
84
85
|
return commit
|
|
85
86
|
|
|
86
87
|
def create_and_commit_file(self, project_id, branch_name="main", file_path="file.txt", content=""):
|
|
@@ -98,8 +99,8 @@ class GitLabManager:
|
|
|
98
99
|
]
|
|
99
100
|
}
|
|
100
101
|
commit = project.commits.create(commit_data)
|
|
101
|
-
|
|
102
|
-
print(commit)
|
|
102
|
+
P.green(f"{file_path} created and committed to the repository {project.name}.")
|
|
103
|
+
# print(commit)
|
|
103
104
|
return commit
|
|
104
105
|
|
|
105
106
|
def create_gitlab_repository(self, project_name, visibility='public'):
|
|
@@ -162,13 +163,13 @@ class GitLabManager:
|
|
|
162
163
|
new_repo_name = f"{repo_name}_{time.strftime('%Y%m%d')}"
|
|
163
164
|
new_project = self.get_project(new_repo_name)
|
|
164
165
|
if new_project is not None:
|
|
165
|
-
|
|
166
|
+
P.red(f"Project {new_repo_name} already exists. Deleting...")
|
|
166
167
|
self.delete_project(new_project.id)
|
|
167
168
|
project.name = new_repo_name
|
|
168
169
|
project.path = new_repo_name
|
|
169
|
-
|
|
170
|
+
P.yellow(f"Repository {repo_name} renaming to {new_repo_name}.")
|
|
170
171
|
project.save()
|
|
171
|
-
|
|
172
|
+
P.green(f"Repository {repo_name} renamed to {new_repo_name}.")
|
|
172
173
|
return project
|
|
173
174
|
|
|
174
175
|
def reset_repository(self, repo_name, gitattributes=None, user_id=8064473, sleep_for=10, delete_only=False):
|
|
@@ -177,13 +178,13 @@ class GitLabManager:
|
|
|
177
178
|
project = self.get_project(repo_name)
|
|
178
179
|
self.delete_project(project.id)
|
|
179
180
|
if not delete_only:
|
|
180
|
-
|
|
181
|
+
P.red(f"Waiting for {sleep_for} seconds for the project to be completely deleted...")
|
|
181
182
|
time.sleep(sleep_for)
|
|
182
183
|
project = self.create_repository(repo_name, provide_owner_access=True, user_id=user_id)
|
|
183
184
|
if gitattributes is not None:
|
|
184
185
|
commit = self.create_and_commit_file(project_id=project.id, file_path=".gitattributes",
|
|
185
186
|
content=gitattributes)
|
|
186
|
-
print(commit)
|
|
187
|
+
# print(commit)
|
|
187
188
|
return project
|
|
188
189
|
except Exception as e:
|
|
189
190
|
print(f"Failed to reset repository: {e}")
|
|
@@ -241,7 +242,7 @@ class GitLabManager:
|
|
|
241
242
|
if override_target:
|
|
242
243
|
target_project = self.get_project(target_repo_name)
|
|
243
244
|
if target_project is not None:
|
|
244
|
-
|
|
245
|
+
P.red(f"Project {target_repo_name} already exists. Deleting...")
|
|
245
246
|
self.delete_project(target_project.id)
|
|
246
247
|
if self.get_project(target_repo_name) is not None:
|
|
247
248
|
print(f"Project {target_repo_name} already exists. Exiting...")
|
|
@@ -183,6 +183,10 @@ class Library:
|
|
|
183
183
|
r.add(String('config_defaultMusic', 'com.google.android.apps.youtube.music'))
|
|
184
184
|
return r
|
|
185
185
|
|
|
186
|
+
@staticmethod
|
|
187
|
+
def get_template():
|
|
188
|
+
return Resources()
|
|
189
|
+
|
|
186
190
|
@staticmethod
|
|
187
191
|
def get_devices_personalization_services_resources():
|
|
188
192
|
r = Resources()
|
|
@@ -16,7 +16,7 @@ def overlay_control():
|
|
|
16
16
|
for android_version in android_versions:
|
|
17
17
|
repo_name = Statics.get_overlay_source_repo(android_version)
|
|
18
18
|
repo_dir = Statics.get_overlay_source_directory(android_version)
|
|
19
|
-
branch = "
|
|
19
|
+
branch = "main"
|
|
20
20
|
overlay_source_repo = Git(repo_dir)
|
|
21
21
|
overlay_source_repo.clone_repo(repo_name, branch=branch)
|
|
22
22
|
|
|
@@ -31,7 +31,7 @@ def overlay_control():
|
|
|
31
31
|
overlays_repo_name = Statics.get_overlay_repo(android_version)
|
|
32
32
|
overlays_repo_dir = Statics.get_overlay_directory(android_version)
|
|
33
33
|
overlay_repo = Git(overlays_repo_dir)
|
|
34
|
-
overlay_repo.clone_repo(overlays_repo_name, branch="
|
|
34
|
+
overlay_repo.clone_repo(overlays_repo_name, branch="main")
|
|
35
35
|
for folder in Path(repo_dir).iterdir():
|
|
36
36
|
if str(folder).endswith(".git"):
|
|
37
37
|
continue
|
|
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
|
|
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
|