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 c431cf7
Show file tree
Hide file tree
Showing 29 changed files with 1,201 additions and 256 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ jobs:
- name: Install Android Build Tools
run: sdkmanager "build-tools;29.0.3"

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

- 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
with:
Expand All @@ -61,4 +65,4 @@ jobs:
token: ${{ github.token }}
generateReleaseNotes: true
tag: v${{ env.VERSION_NAME }}-${{ github.run_number }}
prerelease: true
prerelease: true
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>
23 changes: 2 additions & 21 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,21 +1,2 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
7 changes: 6 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@
android:supportsRtl="true"
android:theme="@style/Theme.Telewatch.Splash"
tools:targetApi="31">
<activity
android:name=".AboutActivity"
android:exported="false"
android:label="@string/about_activity_setting"
android:theme="@style/Theme.Telewatch" />
<activity
android:name=".ChatActivity"
android:exported="false"
android:label="@string/title_activity_setting"
android:label="@string/chat_activity_main"
android:theme="@style/Theme.Telewatch" />
<activity
android:name=".SettingActivity"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/assets/config.properties.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
api_id=YOU_API_ID
api_hash=YOU_API_HASH
api_hash=YOU_API_HASH
BUILD_DATE=2024
Loading

0 comments on commit c431cf7

Please sign in to comment.