Skip to content

Commit 89f2fa2

Browse files
author
spiralgang
committed
feat: Complete Android project structure with AndroidManifest.xml and resources for GangTerm APK
1 parent dd7c936 commit 89f2fa2

5 files changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Align Android Config Bot
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Or your primary branch
7+
8+
jobs:
9+
align:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Run Alignment Script
16+
run: ./align_android_config.sh
17+
18+
- name: Download and Extract Gradle Wrapper JAR
19+
run: |
20+
mkdir -p gradle/wrapper
21+
curl -L -o gradle-dist.zip https://services.gradle.org/distributions/gradle-8.2-bin.zip
22+
unzip -p gradle-dist.zip gradle-8.2/lib/gradle-wrapper-8.2.jar > gradle/wrapper/gradle-wrapper.jar
23+
rm gradle-dist.zip
24+
25+
- name: Auto-commit changes
26+
uses: stefanzweifel/git-auto-commit-action@v5
27+
with:
28+
commit_message: "chore: Align Android configuration"
29+
branch: ${{ github.ref_name }}
30+
commit_options: '--no-verify'
31+
file_pattern: 'build.gradle settings.gradle app/build.gradle gradlew gradlew.bat gradle/wrapper/gradle-wrapper.properties src/**'
32+
repository: .
33+
commit_user_name: Config Bot
34+
commit_user_email: bot@superlab.com
35+
commit_author: Config Bot <bot@superlab.com>

src/main/AndroidManifest.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.superlab.quantumide">
4+
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
7+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
8+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9+
10+
<application
11+
android:allowBackup="true"
12+
android:icon="@mipmap/ic_launcher"
13+
android:label="@string/app_name"
14+
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
15+
android:usesCleartextTraffic="true">
16+
<activity
17+
android:name=".MainActivity"
18+
android:exported="true"
19+
android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout"
20+
android:windowSoftInputMode="adjustResize">
21+
<intent-filter>
22+
<action android:name="android.intent.action.MAIN" />
23+
<category android:name="android.intent.category.LAUNCHER" />
24+
</intent-filter>
25+
</activity>
26+
</application>
27+
28+
</manifest>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>

src/main/res/values/colors.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<color name="ic_launcher_background">#FFFFFF</color>
3+
</resources>

src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<string name="app_name">GangTerm</string>
3+
</resources>

0 commit comments

Comments
 (0)