Skip to content

Commit

Permalink
1.0.0 Version
Browse files Browse the repository at this point in the history
```Refactor SettingActivity to use mutableStateOf for managing the settings list and perform actions based on user selections. Add a link to AboutActivity. By replacing the static settings list with mutableStateOf and handling user click events in SplashSettingScreen, the refactor improves the flexibility and maintainability of the code. The newly added AboutActivity link allows users to access the About page.
```

```重构SettingActivity以使用mutableStateOf进行设置列表管理,并根据用户选择项执行操作。添加AboutActivity的链接。通过使用mutableStateOf替换静态设置列表,并在SplashSettingScreen中处理用户点击事件,重构提高了代码的灵活性和可维护性。新增的AboutActivity链接允许用户访问关于页面。
```

Signed-off-by: gohj99 <[email protected]>
  • Loading branch information
gohj99 committed Aug 11, 2024
1 parent 233ad05 commit 31cdc5e
Show file tree
Hide file tree
Showing 29 changed files with 1,233 additions and 264 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,56 @@ jobs:
permissions:
contents: write
steps:
# Step 1: Checkout the repository
- uses: actions/checkout@v4

# Step 2: Extract repository name
- name: Extract repository name
id: repo-name
id: extract_repo_name
run: echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV


# Step 3: Extract version name from build.gradle.kts
- name: Extract version name
id: version_name
id: extract_version_name
run: |
VERSION_NAME=$(grep -oP 'versionName\s*=\s*"\K[^"]+' ./app/build.gradle.kts)
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
# Step 4: Setup Java environment
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

# Step 5: Setup Android SDK
- name: Setup Android SDK
uses: android-actions/setup-android@v3

# Step 6: Install Android Build Tools (using the latest stable version)
- name: Install Android Build Tools
run: sdkmanager "build-tools;29.0.3"
run: sdkmanager "build-tools;33.0.0"

# Step 7: Extract formatted build date
- name: Extract formatted build date
run: echo "BUILD_DATE=$(date -u '+%Y%m%d%H')" >> $GITHUB_ENV

# Step 8: Inject Secrets into config.properties
- name: Inject Secrets into config.properties
run: |
echo "api_id=${{ secrets.API_ID }}" > app/src/main/assets/config.properties
echo "api_hash=${{ secrets.API_HASH }}" >> app/src/main/assets/config.properties
echo "BUILD_DATE=${{ env.BUILD_DATE }}" >> app/src/main/assets/config.properties
- uses: gradle/gradle-build-action@v3
# Step 9: Build the APK using Gradle
- name: Build APK
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.6
arguments: assembleRelease

- uses: r0adkll/sign-android-release@v1
# Step 10: Sign the APK
- name: Sign APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
Expand All @@ -53,9 +69,13 @@ jobs:
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}

- run: mv ${{ steps.sign_app.outputs.signedReleaseFile }} ${{ env.REPO_NAME }}-v${{ env.VERSION_NAME }}-${{ github.run_number }}.apk
# Step 11: Rename and Move APK
- name: Rename and Move APK
run: mv ${{ steps.sign_app.outputs.signedReleaseFile }} ${{ env.REPO_NAME }}-v${{ env.VERSION_NAME }}-${{ github.run_number }}.apk

- uses: ncipollo/release-action@v1
# Step 12: Create a GitHub release and upload the APK
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "*.apk"
token: ${{ github.token }}
Expand Down
35 changes: 23 additions & 12 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions README.ja-JP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<a href="https://github.com/gohj99/Telewatch">
<img src="https://socialify.git.ci/gohj99/Telewatch/image?description=1&descriptionEditable=Android%20%E3%82%A6%E3%82%A9%E3%83%83%E3%83%81%E7%94%A8%E3%81%AE%E3%82%B5%E3%83%BC%E3%83%89%E3%83%91%E3%83%BC%E3%83%86%E3%82%A3%E9%9B%BB%E5%A0%B1%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88&font=Inter&forks=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2Fgohj99%2FTelewatch%2Fmaster%2Ftelewatch.svg&name=1&owner=1&pattern=Circuit%20Board&stargazers=1&theme=Auto" alt="Telewatch" />
</a>

<div align="center">
<br/>
<div>
繁體中文 | <a href="./README.md">English</a> | <a href="./README.zh-CN.md">简体中文</a> | <a href="./README.ja-JP.md">日本語</a>
</div>
<br/>

<div>
<a href="https://github.com/gohj99/Telewatch/blob/master/LICENSE">
<img
src="https://img.shields.io/github/license/gohj99/Telewatch?style=flat-square"
/>
</a >
<a href="https://github.com/gohj99/Telewatch/releases">
<img
src="https://img.shields.io/github/downloads/gohj99/Telewatch/total?style=flat-square"
/>
</a >
</div>
</div>

## ダウンロード

ダウンロード: [Telewatch](https://github.com/gohj99/Telewatch/releases)
ADB シェル:

1. リリースから Telewatch をダウンロードする
2. インストール:

```シェル
adb インストール テレウォッチ
「」
## 最小構成と推奨構成
- 最小メモリ (RAM): 1G
- 最小ストレージ容量 (ROM): 8G
- 最小互換性システム: Android 7.0 (API レベル 24 Nougat)
- 推奨メモリ (RAM): 2G
- 推奨ストレージ容量(ROM):16G
- 推奨システム: Android 11 (API レベル 30 R) または Wear OS 3.0 (API レベル 30)
## コミュニティ
フィードバックを提供するには、[issue](https://github.com/gohj99/Telewatch/issues) を使用することをお勧めします。
もちろん、次のようなフィードバック方法も可能です。
- [テレグラム](https://t.me/teleAndroidwatch)
## Star History
<a href="https://star-history.com/#gohj99/Telewatch&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
</picture>
</a>
63 changes: 61 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
# Telewatch
<a href="https://github.com/gohj99/Telewatch">
<img src="https://socialify.git.ci/gohj99/Telewatch/image?description=1&descriptionEditable=A%20Telegram%20clients%20for%20Android%20watche&font=Inter&forks=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2Fgohj99%2FTelewatch%2Fmaster%2Ftelewatch.svg&name=1&owner=1&pattern=Circuit%20Board&stargazers=1&theme=Auto" alt="Telewatch" />
</a>

Telegram for watch(Developing)
<div align="center">
<br/>
<div>
English | <a href="./README.zh-CN.md">简体中文</a> | <a href="./README.zh-TW.md">繁體中文</a> | <a href="./README.ja-JP.md">日本語</a>
</div>
<br/>

<div>
<a href="https://github.com/gohj99/Telewatch/blob/master/LICENSE">
<img
src="https://img.shields.io/github/license/gohj99/Telewatch?style=flat-square"
/>
</a >
<a href="https://github.com/gohj99/Telewatch/releases">
<img
src="https://img.shields.io/github/downloads/gohj99/Telewatch/total?style=flat-square"
/>
</a >
</div>
</div>

## Download

Download: [Telewatch](https://github.com/gohj99/Telewatch/releases)
ADB Shell:

1. Download Telewatch for releases
2. Install:

```shell
adb install Telewatch
```

## Minimum and recommended requirements

- Minimum RAM: 1G
- Minimum ROM: 8G
- Minimum System: Android 7.0 (API Level 24 Nougat)
- Recommended RAM: 2G
- Recommended ROM: 16G
- Recommended System: Android 11 (API Level 30 R) or Wear OS 3.0 (API level 30)

## Community

We recommend using [issue](https://github.com/gohj99/Telewatch/issues) to provide the most direct
and effective feedback. Of course, the following options for feedback are also available:

- [Telegram](https://t.me/teleAndroidwatch)

## Star History

<a href="https://star-history.com/#gohj99/Telewatch&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
</picture>
</a>
62 changes: 62 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<a href="https://github.com/gohj99/Telewatch">
<img src="https://socialify.git.ci/gohj99/Telewatch/image?description=1&descriptionEditable=%E9%80%82%E7%94%A8%E4%BA%8E%E5%AE%89%E5%8D%93%E6%89%8B%E8%A1%A8%E7%9A%84%E7%AC%AC%E4%B8%89%E6%96%B9telegram%E5%AE%A2%E6%88%B7%E7%AB%AF&font=Inter&forks=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2Fgohj99%2FTelewatch%2Fmaster%2Ftelewatch.svg&name=1&owner=1&pattern=Circuit%20Board&stargazers=1&theme=Auto" alt="Telewatch" />
</a>

<div align="center">
<br/>
<div>
简体中文 | <a href="./README.md">English</a> | <a href="./README.zh-TW.md">繁體中文</a> | <a href="./README.ja-JP.md">日本語</a>
</div>
<br/>

<div>
<a href="https://github.com/gohj99/Telewatch/blob/master/LICENSE">
<img
src="https://img.shields.io/github/license/gohj99/Telewatch?style=flat-square"
/>
</a >
<a href="https://github.com/gohj99/Telewatch/releases">
<img
src="https://img.shields.io/github/downloads/gohj99/Telewatch/total?style=flat-square"
/>
</a >
</div>
</div>

## 下载

下载: [Telewatch](https://github.com/gohj99/Telewatch/releases)
ADB Shell:

1. 从releases下载Telewatch
2. 安装:

```shell
adb install Telewatch
```

## 最低配置和推荐配置

- 最低内存(RAM): 1G
- 最低存储空间(ROM): 8G
- 最低兼容的系统: Android 7.0 (API Level 24 Nougat)
- 推荐内存(RAM): 2G
- 推荐存储空间(ROM): 16G
- 推荐的系统: Android 11 (API Level 30 R) or Wear OS 3.0 (API level 30)

## 反馈

推荐使用[issue](https://github.com/gohj99/Telewatch/issues)来反馈。
当然,以下反馈方式也是可行的:

- [Telegram](https://t.me/teleAndroidwatch)

## Star History

<a href="https://star-history.com/#gohj99/Telewatch&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
</picture>
</a>
62 changes: 62 additions & 0 deletions README.zh-TW.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<a href="https://github.com/gohj99/Telewatch">
<img src="https://socialify.git.ci/gohj99/Telewatch/image?description=1&descriptionEditable=%E9%81%A9%E7%94%A8%E6%96%BC%E5%AE%89%E5%8D%93%E6%89%8B%E9%8C%B6%E7%9A%84%E7%AC%AC%E4%B8%89%E6%96%B9telegram%E5%AE%A2%E6%88%B6%E7%AB%AF&font=Inter&forks=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2Fgohj99%2FTelewatch%2Fmaster%2Ftelewatch.svg&name=1&owner=1&pattern=Circuit%20Board&stargazers=1&theme=Auto" alt="Telewatch" />
</a>

<div align="center">
<br/>
<div>
繁體中文 | <a href="./README.md">English</a> | <a href="./README.zh-CN.md">简体中文</a> | <a href="./README.ja-JP.md">日本語</a>
</div>
<br/>

<div>
<a href="https://github.com/gohj99/Telewatch/blob/master/LICENSE">
<img
src="https://img.shields.io/github/license/gohj99/Telewatch?style=flat-square"
/>
</a >
<a href="https://github.com/gohj99/Telewatch/releases">
<img
src="https://img.shields.io/github/downloads/gohj99/Telewatch/total?style=flat-square"
/>
</a >
</div>
</div>

## 下載

下載: [Telewatch](https://github.com/gohj99/Telewatch/releases)
ADB Shell:

1. 從releases下載Telewatch
2. 安裝:

```shell
adb install Telewatch
```

## 最低配置和建議配置

- 最低記憶體(RAM): 1G
- 最低儲存空間(ROM): 8G
- 最低相容的系統: Android 7.0 (API Level 24 Nougat)
- 推薦記憶體(RAM): 2G
- 建議儲存空間(ROM): 16G
- 建議的系統: Android 11 (API Level 30 R) 或 Wear OS 3.0 (API level 30)

## 回饋

建議使用[issue](https://github.com/gohj99/Telewatch/issues)來回饋。
當然,以下回饋方式也是可行的:

- [Telegram](https://t.me/teleAndroidwatch)

## Star History

<a href="https://star-history.com/#gohj99/Telewatch&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=gohj99/Telewatch&type=Date" />
</picture>
</a>
Loading

0 comments on commit 31cdc5e

Please sign in to comment.