Slide 1

Slide 1 text

(SBEMF7FSTJPO$BUBMPH XJUI,54 +VOTV1BSL ,PUMJO$POGs 4PVUI,PSFB

Slide 2

Slide 2 text

Mobile apps Junsu Park Github@JunJaBoy

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

👍

Slide 5

Slide 5 text

Gradle Build Tool ● য়೑ࣗझ ● ҟߧਤೠ৔৉੄ࣗ೐౟ਝয࠽٘दաܻয়੗زച ● Ҋࣻળ੄ࢶ঱ഋ࠽٘঱য۽֫਷оةࢿઁҕ ● ೐۽ં౟ӏݽࠂ੟بীҙ҅হ੉नࣘ ਬো ● ૐ࠙࠽٘ ࠽٘நय ߽۳୊ܻઁҕ 👍

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

+

Slide 13

Slide 13 text

ߊ಴ ҳࢿ ● ,54 ● (SBEMF7FSTJPO$BUBMPH ● (SBEMF7FSTJPO$BUBMPH۽݃੉Ӓۨ੉࣌ೞӝ XJUI,54

Slide 14

Slide 14 text

ࢠ೒ ೐۽ં౟ ߊ಴ ੗ܐ

Slide 15

Slide 15 text

,54 ,PUMJO4DSJQU

Slide 16

Slide 16 text

,54ঌইࠁӝ

Slide 17

Slide 17 text

KTS - Kotlin Script ● %4-%PNBJO4QFDJGJD-BOHVBHFౠࣻೠݾ੸ਸਤ೧ࢎਊೞח঱য ● ੌ߈੸ੋ,PUMJOޙߨҗزੌ ● ஹ౵ੌఋ੐ী௏٘୓௼оמ

Slide 18

Slide 18 text

KTS - Kotlin Script ● %4-%PNBJO4QFDJGJD-BOHVBHFౠࣻೠݾ੸ਸਤ೧ࢎਊೞח঱য ● ੌ߈੸ੋ,PUMJOޙߨҗزੌ ● ஹ౵ੌఋ੐ী௏٘୓௼оמ jetbrains exposed

Slide 19

Slide 19 text

Kotlin vs Groovy ● ࠙ঠ গ೒ܻா੉࣌ѐߊWTझ௼݀౴ ● օࣁ੉೐౭ ࠁ੢WTࠁ੢9 ● ۞׬ழ࠳ рѾWT੗߄৬ਬࢎ ● ஹ౵ੌ ੿੸ఋੑWTز੸ఋੑ ● ࢿמ ੗߄৬ਬࢎ WT$MPTVSF۽ੋ೧וܿ ● *%&૑ਗ ࢚؀੸ਵ۽݆਺ WT࢚؀੸ਵ۽੸਺

Slide 20

Slide 20 text

ࢎਊߑߨ

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

ޤঠ ղ ௏ౣܽ ج۰઻ਃ

Slide 24

Slide 24 text

1 ● 🤓 Ӓܖ࠺UP௏ౣܽஶߡఠоઓ੤ೞաਃ ● 🤗 ߄۽׼न?? Ӓܖ࠺ to ௏ౣܽ ஶߡఠо ੓աਃ? ݢ੷ Ӓܖ࠺ ౵ੌਸ ௏ౣܽ ౵ੌ۽ ੉ܴਸ ߄ԲदҊ.. য૵ҳ੷૵ҳ

Slide 25

Slide 25 text

Groovy झ௼݀౟ীࢲ ݃੉Ӓۨ੉࣌ ● ҕध੸ਵ۽ઁҕغחஶߡఠחઓ੤ೞ૑ঋ਺ ● ҕधޙࢲীࢲبࣻ੘সਸউղೞח

Slide 26

Slide 26 text

ೞ૑݅ दр਷ Ә :P ● CFSOBGFSSBSJ(SBEMF,PUMJO$POWFSUFS ● (SPPWZ௏٘ܳ,PUMJOਵ۽߸ജઁҕ

Slide 27

Slide 27 text

ଵ ౟ܖ ѐߊ੗) ௏٘ ॳחѢ જইೣ ● ҳӖ੉ೞۄח؀۽೧ࠇद׮

Slide 28

Slide 28 text

1. gradle झ௼݀౟ ഛ੢੗ ࣻ੿

Slide 29

Slide 29 text

1. gradle झ௼݀౟ ഛ੢੗ ࣻ੿

Slide 30

Slide 30 text

2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃

Slide 31

Slide 31 text

2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃ plugins { id 'com.android.application' version '8.4.1' id 'org.jetbrains.kotlin.android' version '1.9.0' } ● ޙ੗ৌࢶ঱ࣻ੿ ● ੘਷ٮ১಴ r ௾ٮ১಴ t

Slide 32

Slide 32 text

2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃ plugins { id “com.android.application” version “8.4.1" id “org.jetbrains.kotlin.android" version “1.9.0” } plugins { id 'com.android.application' version '8.4.1' id 'org.jetbrains.kotlin.android' version '1.9.0' } ● ޙ੗ৌࢶ঱ࣻ੿ ● ੘਷ٮ১಴ r ௾ٮ১಴ t

Slide 33

Slide 33 text

2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃ plugins { id(”com.android.application”) version ”8.4.1” id(”org.jetbrains.kotlin.android”) version ”1.9.0” } plugins { id “com.android.application” version “8.4.1" id “org.jetbrains.kotlin.android" version “1.9.0” } ● ೣࣻഐ୹ࣻ੿ ● Қഐ ୶о

Slide 34

Slide 34 text

● ؀ੑো࢑୶о ● ؀ੑӝഐ ୶о 2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃ java { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 }

Slide 35

Slide 35 text

● ؀ੑো࢑୶о ● ؀ੑӝഐ ୶о 2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃ java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } java { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 }

Slide 36

Slide 36 text

● ߸ࣻࢶ঱৘ডযࣻ੿ ● EFGªWBM WBS 2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃ def activityComposeVersion = ‘1.9.0’

Slide 37

Slide 37 text

● ߸ࣻࢶ঱৘ডযࣻ੿ ● EFGªWBM WBS 2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃ val activityComposeVersion = “1.9.0” def activityComposeVersion = ‘1.9.0’

Slide 38

Slide 38 text

plugins { alias(libs.plugins.android.application) alias(libs.plugins.jetbrains.kotlin.android) } android { namespace 'app.junsu.gvc' compileSdk 34 defaultConfig { applicationId ’app.junsu.gvc’ minSdk 32 targetSdk 34 versionCode 1 versionName ‘1.0’ testInstrumentationRunner ‘androidx.test.runner.AndroidJUnitRunner’ vectorDrawables { useSupportLibrary true }

Slide 39

Slide 39 text

plugins { alias(libs.plugins.android.application) alias(libs.plugins.jetbrains.kotlin.android) } android { namespace = "app.junsu.gvc" compileSdk = 34 defaultConfig { applicationId = "app.junsu.gvc" minSdk = 32 targetSdk = 34 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true }

Slide 40

Slide 40 text

plugins { alias(libs.plugins.android.application) alias(libs.plugins.jetbrains.kotlin.android) } android { namespace = "app.junsu.gvc" compileSdk = 34 defaultConfig { applicationId = "app.junsu.gvc" minSdk = 32 targetSdk = 34 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true } namespace = "app.junsu.gvc" compileSdk = 34 defaultConfig { applicationId = "app.junsu.gvc" minSdk = 32 targetSdk = 34 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true }

Slide 41

Slide 41 text

namespace 'app.junsu.gvc' compileSdk 34 defaultConfig { applicationId ‘app.junsu.gvc’ minSdk 32 targetSdk 34 versionCode 1 versionName ‘1.0’ testInstrumentationRunner ‘…’ vectorDrawables { useSupportLibrary true } namespace = "app.junsu.gvc" compileSdk = 34 defaultConfig { applicationId = "app.junsu.gvc" minSdk = 32 targetSdk = 34 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "android vectorDrawables { useSupportLibrary = true }

Slide 42

Slide 42 text

3. Gradle य௼

Slide 43

Slide 43 text

৮ࢿ 🥳

Slide 44

Slide 44 text

Kotlin Script੄ ࢿמ ● (SBEMF$*ӝળࢿמஏ੿ Use case Groovy Kotlin Differences First use 🟢 32s 🔴 76s Groovy DSL is 2.4x faster buildSrc abi change 🟢 10s 🔴 33s Groovy DSL is 3.3x faster buildSrc non-abi change 🔴 10s 🟢 5.3s Kotlin DSL is 1.9x faster configuration 🟢 2s 🔴 2.2s Groovy DSL is 0.11x faster https://github.com/gradle/gradle/issues/15886

Slide 45

Slide 45 text

(SBEMF7FSTJPO$BUBMPH (SBEMF੄ઓࢿݾ۾ҙܻ

Slide 46

Slide 46 text

(SBEMF7FSTJPO $BUBMPHঌইࠁӝ

Slide 47

Slide 47 text

Gradle Version Catalog ? ● (SBEMF੄ઓࢿਸݾ۾ਵ۽ҙܻ ● 50.-঱যࢎਊ ாߏா੉झ ● ೞա੄ߡ੹ݾ۾ਸࢤࢿ ৈ۞Ҕীࢲ5ZQFTBGFೞѱଵઑ ● (SBEMF੉റࢎਊоמ ࠗఠউ੿ച

Slide 48

Slide 48 text

[versions] compileSdk = "34" minSdk = "32" targetSdk = "34" agp = "8.4.1" kotlin = "1.9.0" coreKtx = "1.13.1" junit = "4.13.2" junitVersion = "1.1.5" espressoCore = "3.5.1" lifecycleRuntimeKtx = "2.8.2" activityCompose = "1.9.0" composeBom = "2024.06.00" [libraries] androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } junit = { group = "junit", name = "junit", version.ref = "junit" } androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", v androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeB androidx-ui = { group = "androidx.compose.ui", name = "ui" } libs.versions.toml

Slide 49

Slide 49 text

[versions] compileSdk = "34" minSdk = "32" targetSdk = "34" agp = "8.4.1" kotlin = "1.9.0" coreKtx = "1.13.1" junit = "4.13.2" junitVersion = "1.1.5" espressoCore = "3.5.1" lifecycleRuntimeKtx = "2.8.2" activityCompose = "1.9.0" composeBom = "2024.06.00" [libraries] androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } junit = { group = "junit", name = "junit", version.ref = "junit" } androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", v androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeB androidx-ui = { group = "androidx.compose.ui", name = "ui" } ߡ੹ ߸ࣻ ۄ੉࠳۞ܻ ߸ࣻ libs.versions.toml ߡ੹ ࣂ࣌ ۄ੉࠳۞ܻ ࣂ࣌

Slide 50

Slide 50 text

ࢎਊߑߨ

Slide 51

Slide 51 text

ߡ੹ ஠ఎ۽Ӓ ౵ੌ ࢤࢿ

Slide 52

Slide 52 text

ߡ੹ ஠ఎ۽Ӓ ౵ੌ ࢤࢿ

Slide 53

Slide 53 text

ߡ੹ ஠ఎ۽Ӓ ౵ੌ ࢤࢿ

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

settings.gradle.kts

Slide 56

Slide 56 text

ࣂ࣌ ● WFSTJPOT ● MJCSBSJFT ● QMVHJOT ● CVOEMFT [bundles] ui = ["androidx-core-ktx", "androidx-compose-bom", "andro test = ["junit", "androidx-junit", "androidx-ui-test-juni [versions] activityCompose = "1.9.0" minSdk = "32" [libraries] androidx-ui = { group = "androidx.compose.ui", name = "ui junit = { group = "junit", name = "junit", version.ref = [plugins] android-application = { id = "com.android.application", v jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.a "kotlin" }

Slide 57

Slide 57 text

ࣂ࣌ - versions ● ߡ੹੿ࠁܳ׸਷߸ࣻ੿੄

Slide 58

Slide 58 text

ࣂ࣌ - versions ● *%&о੗زਵ۽नӏߡ੹ఐ࢝ ࣻ੿ઁউ ● ߡ੹੉PVUEBUFEػ҃਋ܽ౟҃Ҋ

Slide 59

Slide 59 text

ࣂ࣌ - libraries ● ۄ੉࠳۞ܻQBUIܳ׸਷߸ࣻ੿੄ ● LFCBCDBTF۽؊ա਷௏٘যदझఢझઁҕ

Slide 60

Slide 60 text

ࣂ࣌ - libraries ● NPEVMF HSPVQOBNF೙٘૑੿

Slide 61

Slide 61 text

ࣂ࣌ - libraries ● WFSTJPO WFSTJPOSFGܳࢎਊೞৈߡ੹૑੿

Slide 62

Slide 62 text

ࣂ࣌ - plugins ● ೒۞ӒੋQBUIܳ׸਷߸ࣻ੿੄ ● JE೙٘૑੿ ● WFSTJPO WFSTJPOSFGܳࢎਊೞৈߡ੹૑੿

Slide 63

Slide 63 text

ࣂ࣌ - bundles ● ۄ੉࠳۞ܻ೒۞Ӓੋ߸ࣻܳ׸਷ݾ۾੿੄

Slide 64

Slide 64 text

੄ઓࢿ ࢶ঱ ߑध ߸҃

Slide 65

Slide 65 text

੄ઓࢿ ࢶ঱ ߑध ߸҃

Slide 66

Slide 66 text

੄ઓࢿ ࢶ঱ ߑध ߸҃

Slide 67

Slide 67 text

੄ઓࢿ ࢶ঱ ߑध ߸҃

Slide 68

Slide 68 text

੄ઓࢿ ࢶ঱ ߑध ߸҃

Slide 69

Slide 69 text

(SBEMF7FSTJPO$BUBMPH۽ ݃੉Ӓۨ੉࣌ೞӝ XJUI,54 (SPPWZUP,PUMJO CVJME4SDUP7FSTJPO$BUBMPH

Slide 70

Slide 70 text

(SPPWZীࢲ ,54۽߄Բӝ

Slide 71

Slide 71 text

1. gradle झ௼݀౟ ഛ੢੗ ࣻ੿ ● FY CVJMEHSBEMFCVJMEHSBEMFLUT

Slide 72

Slide 72 text

2. Kotlin ޙߨী ݏѱ ௏٘ ߸҃

Slide 73

Slide 73 text

plugins { alias(libs.plugins.android.application) alias(libs.plugins.jetbrains.kotlin.android) } android { namespace 'app.junsu.gvc' compileSdk 34 defaultConfig { applicationId ’app.junsu.gvc’ minSdk 32 targetSdk 34 versionCode 1 versionName ‘1.0’ testInstrumentationRunner ‘androidx.test.runner.AndroidJUnitRunner’ vectorDrawables { useSupportLibrary true }

Slide 74

Slide 74 text

plugins { alias(libs.plugins.android.application) alias(libs.plugins.jetbrains.kotlin.android) } android { namespace = "app.junsu.gvc" compileSdk = 34 defaultConfig { applicationId = "app.junsu.gvc" minSdk = 32 targetSdk = 34 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true }

Slide 75

Slide 75 text

3. Gradle य௼

Slide 76

Slide 76 text

🥳

Slide 77

Slide 77 text

7FSTJPO$BUBMPH ࢎਊೞӝ

Slide 78

Slide 78 text

1. ߡ੹ ஠ఎ۽Ӓ ౵ੌ ࢤࢿ ● SPPUHSBEMFMJCTWFSTJPOTUPNM

Slide 79

Slide 79 text

2. ࣂ࣌߹ ߸ࣻ ࢶ঱ ● WFSTJPOT MJCSBSJFT QMVHJOT CVOEMFT ● ாߏா੉झ

Slide 80

Slide 80 text

3. ੄ઓࢿ ࢶ঱ ߑध ߸҃

Slide 81

Slide 81 text

3. ੄ઓࢿ ࢶ঱ ߑध ߸҃

Slide 82

Slide 82 text

੸ਊೞӝ੹Ҋ޹

Slide 83

Slide 83 text

와 코틀린! 와 깔끔함! 와 버전카탈로그! 와 편리함!

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

੸ਊೞӝ ੹ Ҋ޹ ● ,54 ● Ӓܖ࠺৬࠺Ү೮ਸٸ ● (SBEMF7FSTJPO$BUBMPH ● ߡ੹ҙܻݽٕ੉হח೐۽ં౟৬࠺Ү೮ਸٸ ● CVJME4SD৬࠺Ү೮ਸٸ

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

https://docs.gradle.org/current/userguide/kotlin_dsl.html

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

No content

Slide 90

Slide 90 text

👑

Slide 91

Slide 91 text

KTSܳ ࢎਊೞݶ જ਷ ੼੉ ަө? ● *%&੄ࡎࡎೠ૑ਗ ● ௏ౣܽ಴ળۄ੉࠳۞ܻܳࢎਊೡٸ ● ழझథ೒۞Ӓੋਸऔѱࢎਊೡٸ 👑

Slide 92

Slide 92 text

KTSܳ ࢎਊೞݶ જ਷ ੼੉ ަө? ● *%&੄ࡎࡎೠ૑ਗ ● ௏ౣܽ಴ળۄ੉࠳۞ܻܳࢎਊೡٸ ● ழझథ೒۞Ӓੋਸऔѱࢎਊೡٸ 👑

Slide 93

Slide 93 text

KTSܳ ࢎਊೞݶ જ਷ ੼੉ ަө? ● *%&੄ࡎࡎೠ૑ਗ ● ௏ౣܽ಴ળۄ੉࠳۞ܻܳࢎਊೡٸ ● ழझథ೒۞Ӓੋਸऔѱࢎਊೡٸ 👑

Slide 94

Slide 94 text

buildSrc version catalog ‘ࣁ҅ҙ ୭ъ੗ٜ੄ ऱ਑’

Slide 95

Slide 95 text

buildSrc version catalog

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

buildSrc

Slide 98

Slide 98 text

buildSrc

Slide 99

Slide 99 text

buildSrc

Slide 100

Slide 100 text

buildSrc module 1 module 2 module 3

Slide 101

Slide 101 text

buildSrc

Slide 102

Slide 102 text

যڄ ٸ ࢎਊೡө? ߡ੹ ஠ఎ۽Ӓ - ߡ੹ ҙܻ buildSrc - ழझథ ೒۞Ӓੋ ҙܻ

Slide 103

Slide 103 text

buildSrc - ழझథ ೒۞Ӓੋ ҙܻ যڄ ٸ ࢎਊೡө? ߡ੹ ஠ఎ۽Ӓ - ߡ੹ ҙܻ

Slide 104

Slide 104 text

ߡ੹ ஠ఎ۽Ӓ - ߡ੹ ҙܻ buildSrc - ழझథ ೒۞Ӓੋ ҙܻ যڄ ٸ ࢎਊೡө? +

Slide 105

Slide 105 text

No content

Slide 106

Slide 106 text

хࢎ೤פ׮