Skip to content

Commit 9d67773

Browse files
authored
Merge branch 'Acode-Foundation:main' into main
2 parents 9e1ff61 + 2d963b3 commit 9d67773

9 files changed

Lines changed: 636 additions & 228 deletions

File tree

.github/workflows/nightly-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,28 +172,28 @@
172172
run: |
173173
node utils/storage_manager.mjs y
174174
npm run build paid dev apk
175-
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/app-debug-normal.apk
175+
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/acode-debug-normal-$UPDATED_VERSION.apk
176176
echo "VERSION: $UPDATED_VERSION" >> $GITHUB_STEP_SUMMARY
177177
178178
- name: Upload APK Artifact
179179
uses: actions/upload-artifact@v7
180180
with:
181181
name: app-debug-${{ env.GIT_COMMIT }}
182-
path: /tmp/app-debug-normal.apk
182+
path: /tmp/acode-debug-normal-${{ env.UPDATED_VERSION }}.apk
183183

184184
- name: Run npm build paid dev apk fdroid (for F-Droid)
185185
if: ${{ !inputs.is_PR }}
186186
run: |
187187
node utils/storage_manager.mjs y
188188
npm run build paid dev apk fdroid
189-
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/app-debug-fdroid.apk
189+
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/acode-debug-fdroid-$UPDATED_VERSION.apk
190190
191191
- name: Upload APK Artifact
192192
uses: actions/upload-artifact@v7
193193
if: ${{ !inputs.is_PR }}
194194
with:
195195
name: app-debug-fdroid-${{ env.GIT_COMMIT }}
196-
path: /tmp/app-debug-fdroid.apk
196+
path: /tmp/acode-debug-fdroid-${{ env.UPDATED_VERSION }}.apk
197197

198198
- name: remove keystore and build.json
199199
run: |
@@ -251,8 +251,8 @@
251251
name: ${{ env.UPDATED_VERSION }}
252252
tag_name: ${{ env.UPDATED_VERSION }}
253253
files: |
254-
/tmp/app-debug-normal.apk
255-
/tmp/app-debug-fdroid.apk
254+
/tmp/acode-debug-normal-$UPDATED_VERSION.apk
255+
/tmp/acode-debug-fdroid-$UPDATED_VERSION.apk
256256
body: |
257257
Automated Nightly (pre-release) Releases for Today
258258

config.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,31 @@
3838
<preference name="GradlePluginKotlinEnabled" value="true" />
3939
<preference name="android-targetSdkVersion" value="36" />
4040

41-
41+
<!-- Cordova does not merge this unless both of these are present -->
4242
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
4343
<application
44+
android:usesCleartextTraffic="true"
4445
android:networkSecurityConfig="@xml/network_security_config"
4546
android:hardwareAccelerated="true"
4647
android:largeHeap="true"
4748
android:requestLegacyExternalStorage="true"
4849
android:enableOnBackInvokedCallback="false" />
4950
</edit-config>
5051

52+
<!-- Cordova does not merge this unless both of these are present -->
53+
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
54+
<application android:networkSecurityConfig="@xml/network_security_config" />
55+
<application android:usesCleartextTraffic="true" />
56+
<application android:hardwareAccelerated="true" />
57+
<application android:largeHeap="true" />
58+
<application android:requestLegacyExternalStorage="true"/>
59+
<application android:enableOnBackInvokedCallback="false" />
60+
</edit-config>
61+
5162
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">
5263
<activity android:resizeableActivity="true" />
5364
</edit-config>
5465

55-
5666
<config-file parent="./application/activity" target="AndroidManifest.xml">
5767
<intent-filter>
5868
<action android:name="android.intent.action.VIEW" />

res/android/xml/network_security_config.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,4 @@
55
<certificates src="system" />
66
</trust-anchors>
77
</base-config>
8-
9-
<domain-config cleartextTrafficPermitted="true">
10-
<domain includeSubdomains="true">*</domain>
11-
<domain includeSubdomains="true">localhost</domain>
12-
</domain-config>
13-
</network-security-config>
14-
15-
<!-- This file is used to allow the app to load http://localhost in in-app browser, used to run project. DO NOT remove-->
8+
</network-security-config>

0 commit comments

Comments
 (0)