From 588c9ccbf6b1cf9791c804fb6c9e688ffa9ad6c6 Mon Sep 17 00:00:00 2001 From: gohj99 <62464085+gohj99@users.noreply.github.com> Date: Sun, 11 Aug 2024 18:48:10 +0800 Subject: [PATCH] 1.0.0 Version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ```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 <62464085+gohj99@users.noreply.github.com> --- .github/workflows/app-build.yml | 6 +- .idea/deploymentTargetSelector.xml | 35 ++- README.ja-JP.md | 62 +++++ README.md | 63 ++++- README.zh-CN.md | 62 +++++ README.zh-TW.md | 62 +++++ app/proguard-rules.pro | 24 +- app/src/main/AndroidManifest.xml | 7 +- app/src/main/assets/config.properties.example | 3 +- .../com/gohj99/telewatch/AboutActivity.kt | 171 ++++++++++++++ .../java/com/gohj99/telewatch/MainActivity.kt | 37 ++- .../com/gohj99/telewatch/SettingActivity.kt | 53 ++++- .../com/gohj99/telewatch/telegram/TgApi.kt | 220 +++++++++++++++--- .../com/gohj99/telewatch/ui/SettingScreen.kt | 152 ------------ .../telewatch/ui/main/ItemsLazyColumn.kt | 16 ++ .../gohj99/telewatch/ui/main/MainScreen.kt | 54 ++++- .../gohj99/telewatch/ui/main/MenuScreen.kt | 2 +- .../telewatch/ui/setting/SettingLazyColumn.kt | 52 +++++ .../telewatch/ui/setting/SettingScreen.kt | 81 +++++++ app/src/main/res/values-eo/strings.xml | 43 ++++ app/src/main/res/values-fr/strings.xml | 43 ++++ app/src/main/res/values-ja/strings.xml | 43 ++++ app/src/main/res/values-ru/strings.xml | 43 ++++ app/src/main/res/values-zh-rCN/strings.xml | 9 +- app/src/main/res/values-zh-rTW/strings.xml | 43 ++++ app/src/main/res/values/strings.xml | 9 +- gradle/libs.versions.toml | 2 + telewatch.svg | 41 ++++ 28 files changed, 1192 insertions(+), 246 deletions(-) create mode 100644 README.ja-JP.md create mode 100644 README.zh-CN.md create mode 100644 README.zh-TW.md create mode 100644 app/src/main/java/com/gohj99/telewatch/AboutActivity.kt delete mode 100644 app/src/main/java/com/gohj99/telewatch/ui/SettingScreen.kt create mode 100644 app/src/main/java/com/gohj99/telewatch/ui/setting/SettingLazyColumn.kt create mode 100644 app/src/main/java/com/gohj99/telewatch/ui/setting/SettingScreen.kt create mode 100644 app/src/main/res/values-eo/strings.xml create mode 100644 app/src/main/res/values-fr/strings.xml create mode 100644 app/src/main/res/values-ja/strings.xml create mode 100644 app/src/main/res/values-ru/strings.xml create mode 100644 app/src/main/res/values-zh-rTW/strings.xml create mode 100644 telewatch.svg diff --git a/.github/workflows/app-build.yml b/.github/workflows/app-build.yml index ece0289..c77e4a6 100644 --- a/.github/workflows/app-build.yml +++ b/.github/workflows/app-build.yml @@ -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: @@ -61,4 +65,4 @@ jobs: token: ${{ github.token }} generateReleaseNotes: true tag: v${{ env.VERSION_NAME }}-${{ github.run_number }} - prerelease: true + prerelease: true \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index 4213f2a..f8664a0 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,7 +4,18 @@ + + - + - + - + - + - +