From 3addc56d3252dc85048ea9cfc075fab9d78065a0 Mon Sep 17 00:00:00 2001 From: Amit Jain Date: Wed, 13 Apr 2022 23:40:46 -0700 Subject: [PATCH 1/2] Refactor tv android app into platfor-app(in preperation to add content-app) and refactor package names and other strings. --- examples/tv-app/android/App/.idea/.name | 2 +- examples/tv-app/android/App/.idea/gradle.xml | 2 +- examples/tv-app/android/App/.idea/misc.xml | 11 +++++++++++ .../android/App/app/src/main/res/values/strings.xml | 3 --- .../android/App/{app => platform-app}/.gitignore | 0 .../android/App/{app => platform-app}/build.gradle | 6 +++--- .../App/{app => platform-app}/libs/README.md | 0 .../{app => platform-app}/libs/jniLibs/README.md | 0 .../App/{app => platform-app}/proguard-rules.pro | 0 .../matter/tv/server}/ExampleInstrumentedTest.java | 4 ++-- .../src/main/AndroidManifest.xml | 10 +++++----- .../java/com/matter/tv/server}/MainActivity.java | 4 ++-- .../tv/server/MatterTvServerApplication.java} | 6 +++--- .../main/java/com/matter/tv/server}/QRUtils.java | 2 +- .../matter/tv/server}/service/MatterServant.java | 2 +- .../tv/server}/service/MatterServantService.java | 6 +++--- .../res/drawable-v24/ic_launcher_foreground.xml | 0 .../main/res/drawable/ic_launcher_background.xml | 0 .../src/main/res/layout/activity_main.xml | 2 +- .../src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.webp | Bin .../src/main/res/mipmap-hdpi/ic_launcher_round.webp | Bin .../src/main/res/mipmap-mdpi/ic_launcher.webp | Bin .../src/main/res/mipmap-mdpi/ic_launcher_round.webp | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.webp | Bin .../main/res/mipmap-xhdpi/ic_launcher_round.webp | Bin .../src/main/res/mipmap-xxhdpi/ic_launcher.webp | Bin .../main/res/mipmap-xxhdpi/ic_launcher_round.webp | Bin .../src/main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin .../main/res/mipmap-xxxhdpi/ic_launcher_round.webp | Bin .../src/main/res/values-night/themes.xml | 2 +- .../src/main/res/values/colors.xml | 0 .../platform-app/src/main/res/values/strings.xml | 3 +++ .../src/main/res/values/themes.xml | 2 +- .../java/com/matter/tv/server}/ExampleUnitTest.java | 2 +- examples/tv-app/android/App/settings.gradle | 4 ++-- scripts/build/build/targets.py | 2 ++ 38 files changed, 44 insertions(+), 31 deletions(-) delete mode 100644 examples/tv-app/android/App/app/src/main/res/values/strings.xml rename examples/tv-app/android/App/{app => platform-app}/.gitignore (100%) rename examples/tv-app/android/App/{app => platform-app}/build.gradle (90%) rename examples/tv-app/android/App/{app => platform-app}/libs/README.md (100%) rename examples/tv-app/android/App/{app => platform-app}/libs/jniLibs/README.md (100%) rename examples/tv-app/android/App/{app => platform-app}/proguard-rules.pro (100%) rename examples/tv-app/android/App/{app/src/androidTest/java/com/tcl/chip/chiptvserver => platform-app/src/androidTest/java/com/matter/tv/server}/ExampleInstrumentedTest.java (85%) rename examples/tv-app/android/App/{app => platform-app}/src/main/AndroidManifest.xml (81%) rename examples/tv-app/android/App/{app/src/main/java/com/tcl/chip/chiptvserver => platform-app/src/main/java/com/matter/tv/server}/MainActivity.java (96%) rename examples/tv-app/android/App/{app/src/main/java/com/tcl/chip/chiptvserver/ChipTvServerApplication.java => platform-app/src/main/java/com/matter/tv/server/MatterTvServerApplication.java} (75%) rename examples/tv-app/android/App/{app/src/main/java/com/tcl/chip/chiptvserver => platform-app/src/main/java/com/matter/tv/server}/QRUtils.java (95%) rename examples/tv-app/android/App/{app/src/main/java/com/tcl/chip/chiptvserver => platform-app/src/main/java/com/matter/tv/server}/service/MatterServant.java (99%) rename examples/tv-app/android/App/{app/src/main/java/com/tcl/chip/chiptvserver => platform-app/src/main/java/com/matter/tv/server}/service/MatterServantService.java (93%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/drawable-v24/ic_launcher_foreground.xml (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/drawable/ic_launcher_background.xml (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/layout/activity_main.xml (97%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-hdpi/ic_launcher.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-hdpi/ic_launcher_round.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-mdpi/ic_launcher.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-mdpi/ic_launcher_round.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-xhdpi/ic_launcher.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-xhdpi/ic_launcher_round.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-xxhdpi/ic_launcher.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-xxxhdpi/ic_launcher.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp (100%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/values-night/themes.xml (88%) rename examples/tv-app/android/App/{app => platform-app}/src/main/res/values/colors.xml (100%) create mode 100644 examples/tv-app/android/App/platform-app/src/main/res/values/strings.xml rename examples/tv-app/android/App/{app => platform-app}/src/main/res/values/themes.xml (88%) rename examples/tv-app/android/App/{app/src/test/java/com/tcl/chip/chiptvslave => platform-app/src/test/java/com/matter/tv/server}/ExampleUnitTest.java (90%) diff --git a/examples/tv-app/android/App/.idea/.name b/examples/tv-app/android/App/.idea/.name index 55b67a119f278a..bd419725becb4e 100644 --- a/examples/tv-app/android/App/.idea/.name +++ b/examples/tv-app/android/App/.idea/.name @@ -1 +1 @@ -CHIPTVServer \ No newline at end of file +MatterTVAndroid \ No newline at end of file diff --git a/examples/tv-app/android/App/.idea/gradle.xml b/examples/tv-app/android/App/.idea/gradle.xml index 526b4c25c6813e..86ed2c6e5bddaf 100644 --- a/examples/tv-app/android/App/.idea/gradle.xml +++ b/examples/tv-app/android/App/.idea/gradle.xml @@ -10,7 +10,7 @@