allow custom android application id
This commit is contained in:
@@ -24,6 +24,7 @@ class GenerateForm(forms.Form):
|
||||
('settingsY', 'No, enable settings'),
|
||||
('settingsN', 'Yes, DISABLE settings')
|
||||
], initial='settingsY')
|
||||
androidappid = forms.CharField(label="Custom Android App ID (replaces 'com.carriez.flutter_hbb')", required=False)
|
||||
|
||||
#Custom Server
|
||||
serverIP = forms.CharField(label="Host", required=False)
|
||||
|
||||
@@ -287,6 +287,8 @@
|
||||
{{ form.installation }}<br><br>
|
||||
<label for="{{ form.settings.id_for_label }}">Disable Settings:</label>
|
||||
{{ form.settings }}<br><br>
|
||||
<label for="{{ form.androidappid.id_for_label }}">Custom Android App ID (replaces 'com.carriez.flutter_hbb', leave blank to use default):</label>
|
||||
{{ form.androidappid }}<br><br>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
|
||||
@@ -50,6 +50,9 @@ def generator_view(request):
|
||||
compname = form.cleaned_data['compname']
|
||||
if not compname:
|
||||
compname = "Purslane Ltd"
|
||||
androidappid = form.cleaned_data['androidappid']
|
||||
if not androidappid:
|
||||
androidappid = "com.carriez.flutter_hbb"
|
||||
compname = compname.replace("&","\\&")
|
||||
permPass = form.cleaned_data['permanentPassword']
|
||||
theme = form.cleaned_data['theme']
|
||||
@@ -200,6 +203,7 @@ def generator_view(request):
|
||||
extras['xOffline'] = 'true' if xOffline else 'false'
|
||||
extras['removeNewVersionNotif'] = 'true' if removeNewVersionNotif else 'false'
|
||||
extras['compname'] = compname
|
||||
extras['androidappid'] = androidappid
|
||||
extra_input = json.dumps(extras)
|
||||
|
||||
####from here run the github action, we need user, repo, access token.
|
||||
|
||||
Reference in New Issue
Block a user