Skip to content

Commit b80385e

Browse files
committed
Initial release v0.0.1
0 parents  commit b80385e

File tree

169 files changed

+26837
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+26837
-0
lines changed

.editorconfig

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# EditorConfig for AutoGLM Phone Agent
2+
# https://editorconfig.org
3+
4+
root = true
5+
6+
# Default settings for all files
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# Kotlin files
14+
[*.{kt,kts}]
15+
indent_style = space
16+
indent_size = 4
17+
max_line_length = 120
18+
19+
# ktlint specific settings
20+
# Disable wildcard imports
21+
ktlint_standard_no-wildcard-imports = enabled
22+
23+
# Enforce trailing comma
24+
ktlint_standard_trailing-comma-on-call-site = disabled
25+
ktlint_standard_trailing-comma-on-declaration-site = disabled
26+
27+
# Enforce blank line before declarations
28+
ktlint_standard_blank-line-before-declaration = enabled
29+
30+
# Enforce consistent spacing
31+
ktlint_standard_spacing-between-declarations-with-annotations = enabled
32+
ktlint_standard_spacing-between-declarations-with-comments = enabled
33+
34+
# Gradle files
35+
[*.gradle.kts]
36+
indent_style = space
37+
indent_size = 4
38+
39+
# XML files (Android layouts, etc.)
40+
[*.xml]
41+
indent_style = space
42+
indent_size = 4
43+
44+
# JSON files
45+
[*.json]
46+
indent_style = space
47+
indent_size = 2
48+
49+
# YAML files
50+
[*.{yml,yaml}]
51+
indent_style = space
52+
indent_size = 2
53+
54+
# Markdown files
55+
[*.md]
56+
trim_trailing_whitespace = false
57+
max_line_length = off
58+
59+
# Properties files
60+
[*.properties]
61+
charset = utf-8

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build and Release APK
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up JDK 17
16+
uses: actions/setup-java@v4
17+
with:
18+
java-version: '17'
19+
distribution: 'temurin'
20+
cache: gradle
21+
22+
- name: Grant execute permission for gradlew
23+
run: chmod +x gradlew
24+
25+
- name: Decode Keystore
26+
run: |
27+
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > app/release.keystore
28+
29+
- name: Build Release APK
30+
run: ./gradlew assembleRelease
31+
env:
32+
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
33+
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
34+
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
35+
36+
- name: Get version name
37+
id: version
38+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
39+
40+
- name: Create Release
41+
uses: softprops/action-gh-release@v1
42+
with:
43+
name: AutoGLM For Android ${{ steps.version.outputs.VERSION }}
44+
files: app/build/outputs/apk/release/*.apk
45+
generate_release_notes: true
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
*.aab
5+
6+
# Files for the ART/Dalvik VM
7+
*.dex
8+
9+
# Java class files
10+
*.class
11+
12+
# Generated files
13+
bin/
14+
gen/
15+
out/
16+
build/
17+
app/build/
18+
19+
# Gradle files
20+
.gradle/
21+
local.properties
22+
23+
# IntelliJ IDEA / Android Studio
24+
*.iml
25+
.idea/
26+
27+
# Kotlin
28+
.kotlin/
29+
30+
# Native
31+
.externalNativeBuild/
32+
.cxx/
33+
34+
# macOS
35+
.DS_Store
36+
37+
# Windows
38+
Thumbs.db
39+
40+
# AI tools
41+
.claude/
42+
.kiro/
43+
44+
# External projects
45+
Open-AutoGLM/
46+
47+
# Captures (Android profiler)
48+
/captures/
49+
50+
# Keystore files - NEVER commit these!
51+
*.keystore
52+
*.jks
53+
keystore_base64.txt

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Luokavin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)