From d1770df412538e2ddda9764ef0ef014375374f68 Mon Sep 17 00:00:00 2001 From: ACH1002 Date: Tue, 7 May 2024 14:58:02 +0900 Subject: [PATCH] [Feat] Add Retrofit compose app with connecting public data #14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retrofit을 이용해 공공데이터를 연결한 jetpack compose 예제 앱 --- .../counter_compose/.idea/gradle.xml | 1 + .../inspectionProfiles/Project_Default.xml | 41 ++++ .../counter_compose/.idea/misc.xml | 1 - .../retrofit_parctice_compose/.gitignore | 15 ++ .../.idea/.gitignore | 3 + .../retrofit_parctice_compose/.idea/.name | 1 + .../.idea/compiler.xml | 6 + .../.idea/gradle.xml | 20 ++ .../inspectionProfiles/Project_Default.xml | 41 ++++ .../.idea/kotlinc.xml | 6 + .../retrofit_parctice_compose/.idea/misc.xml | 9 + .../retrofit_parctice_compose/.idea/vcs.xml | 6 + .../retrofit_parctice_compose/app/.gitignore | 1 + .../app/build.gradle.kts | 75 +++++++ .../app/proguard-rules.pro | 21 ++ .../ExampleInstrumentedTest.kt | 24 +++ .../app/src/main/AndroidManifest.xml | 28 +++ .../GoodRestaurantRepo.kt | 19 ++ .../GoodRestaurantScreen.kt | 53 +++++ .../GoodRestaurantViewModel.kt | 51 +++++ .../retrofit_practice_compose/MainActivity.kt | 35 ++++ .../RetrofitAPIGoodRestaurant.kt | 19 ++ .../model/GoodRestaurant.kt | 18 ++ .../model/Restaurant.kt | 18 ++ .../ui/theme/Color.kt | 11 ++ .../ui/theme/Theme.kt | 70 +++++++ .../ui/theme/Type.kt | 34 ++++ .../res/drawable/ic_launcher_background.xml | 170 ++++++++++++++++ .../res/drawable/ic_launcher_foreground.xml | 30 +++ .../res/mipmap-anydpi-v26/ic_launcher.xml | 6 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 6 + .../src/main/res/mipmap-hdpi/ic_launcher.webp | Bin 0 -> 1404 bytes .../res/mipmap-hdpi/ic_launcher_round.webp | Bin 0 -> 2898 bytes .../src/main/res/mipmap-mdpi/ic_launcher.webp | Bin 0 -> 982 bytes .../res/mipmap-mdpi/ic_launcher_round.webp | Bin 0 -> 1772 bytes .../main/res/mipmap-xhdpi/ic_launcher.webp | Bin 0 -> 1900 bytes .../res/mipmap-xhdpi/ic_launcher_round.webp | Bin 0 -> 3918 bytes .../main/res/mipmap-xxhdpi/ic_launcher.webp | Bin 0 -> 2884 bytes .../res/mipmap-xxhdpi/ic_launcher_round.webp | Bin 0 -> 5914 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin 0 -> 3844 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.webp | Bin 0 -> 7778 bytes .../app/src/main/res/values/colors.xml | 10 + .../app/src/main/res/values/strings.xml | 3 + .../app/src/main/res/values/themes.xml | 5 + .../app/src/main/res/xml/backup_rules.xml | 13 ++ .../main/res/xml/data_extraction_rules.xml | 19 ++ .../ExampleUnitTest.kt | 17 ++ .../build.gradle.kts | 5 + .../gradle.properties | 23 +++ .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 59203 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + .../retrofit_parctice_compose/gradlew | 185 ++++++++++++++++++ .../retrofit_parctice_compose/gradlew.bat | 89 +++++++++ .../settings.gradle.kts | 17 ++ 54 files changed, 1230 insertions(+), 1 deletion(-) create mode 100644 chanho/practice-apps/counter_compose/.idea/inspectionProfiles/Project_Default.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.gitignore create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/.gitignore create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/.name create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/compiler.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/gradle.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/inspectionProfiles/Project_Default.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/kotlinc.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/misc.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/.idea/vcs.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/.gitignore create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/build.gradle.kts create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/proguard-rules.pro create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/androidTest/java/com/example/retrofit_practice_compose/ExampleInstrumentedTest.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/AndroidManifest.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/GoodRestaurantRepo.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/GoodRestaurantScreen.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/GoodRestaurantViewModel.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/MainActivity.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/RetrofitAPIGoodRestaurant.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/model/GoodRestaurant.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/model/Restaurant.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/ui/theme/Color.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/ui/theme/Theme.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/java/com/example/retrofit_practice_compose/ui/theme/Type.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/drawable/ic_launcher_foreground.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-hdpi/ic_launcher.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-mdpi/ic_launcher.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-xhdpi/ic_launcher.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/values/colors.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/values/strings.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/values/themes.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/xml/backup_rules.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/main/res/xml/data_extraction_rules.xml create mode 100644 chanho/practice-apps/retrofit_parctice_compose/app/src/test/java/com/example/retrofit_practice_compose/ExampleUnitTest.kt create mode 100644 chanho/practice-apps/retrofit_parctice_compose/build.gradle.kts create mode 100644 chanho/practice-apps/retrofit_parctice_compose/gradle.properties create mode 100644 chanho/practice-apps/retrofit_parctice_compose/gradle/wrapper/gradle-wrapper.jar create mode 100644 chanho/practice-apps/retrofit_parctice_compose/gradle/wrapper/gradle-wrapper.properties create mode 100755 chanho/practice-apps/retrofit_parctice_compose/gradlew create mode 100644 chanho/practice-apps/retrofit_parctice_compose/gradlew.bat create mode 100644 chanho/practice-apps/retrofit_parctice_compose/settings.gradle.kts diff --git a/chanho/practice-apps/counter_compose/.idea/gradle.xml b/chanho/practice-apps/counter_compose/.idea/gradle.xml index 6d89050..ae388c2 100644 --- a/chanho/practice-apps/counter_compose/.idea/gradle.xml +++ b/chanho/practice-apps/counter_compose/.idea/gradle.xml @@ -1,5 +1,6 @@ +