/ComposeFest2021

๐Ÿด ์ œํŠธํŒฉ ์ปดํฌ์ฆˆ ๋ง›๋งŒ ๋ณด์ž

Primary LanguageKotlin

ComposeFest2021

์•ˆ๋…•ํ•˜์„ธ์š” Compose ์ฝ”๋“œ๋žฉ์— ์˜ค์‹ ๊ฑธ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค.
๋‹ค์Œ์€ ์ฝ”๋“œ๋žฉ์„ ์ง„ํ–‰ํ•˜๊ธฐ ์œ„ํ•œ ์•ˆ๋‚ด์ž…๋‹ˆ๋‹ค.

์ง„ํ–‰ ์ผ์ •

2021๋…„ 11์›” 1์ผ ~ 30์ผ
๋งค์ฃผ ์›”์š”์ผ ์ฝ”๋“œ๋žฉ ์ง„ํ–‰์„ ๋•๊ธฐ ์œ„ํ•œ ์ฃผ์š” ์„ค๋ช… ์˜์ƒ์„ ๊ณต๊ฐœํ•ฉ๋‹ˆ๋‹ค.
๐Ÿ‘‰ ์˜์ƒ ๋ณด๋Ÿฌ๊ฐ€๊ธฐ

Compose ์ฝ”๋“œ๋žฉ


์ค€๋น„๋ฌผ


Repo fork ํ•˜๊ธฐ

  1. Github ํŽ˜์ด์ง€ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ์œ„์˜ fork ํด๋ฆญ compose_1

  2. fork ๋ธŒ๋žœ์น˜๋ฅผ ์–ด๋””์— ๋งŒ๋“ค ๊ฒƒ์ธ์ง€ ๋ฌป๋Š” ํŒ์—…์ด ๋œน๋‹ˆ๋‹ค. ์‹ ์ฒญ์„œ์— ์ž‘์„ฑํ•ด์ฃผ์‹  ์ž์‹ ์˜ Github ๊ณ„์ •์„ ์„ ํƒํ•ด์ค๋‹ˆ๋‹ค. compose_2

  3. fork ๋ธŒ๋žœ์น˜๊ฐ€ ์ž์‹ ์˜ ๊ณ„์ • ์•„๋Ÿ ์ƒ์„ฑ๋˜๋ฉด ์™„๋ฃŒ์ž…๋‹ˆ๋‹ค. compose_3

  4. fork ๋ธŒ๋žœ์น˜๋Š” main ๋ธŒ๋žœ์น˜์— ์˜ํ–ฅ์„ ์ฃผ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋งˆ์Œ๊ป ์ฝ”๋“œ๋žฉ์„ ์ง„ํ–‰ํ•ด๋ณด์„ธ์š”!


์ฝ”๋“œ๋žฉ ์ง„ํ–‰ํ•˜๊ธฐ

  1. ์ž์‹ ์˜ fork ๋ธŒ๋žœ์น˜๋ฅผ ๋กœ์ปฌ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ ์œ„ํ•ด ์›ํ•˜๋Š” ์œ„์น˜์—์„œ github ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค. copy

    git clone ์œผ๋กœ fork ํ•œ ๊ฐœ์ธ ๋ธŒ๋žœ์น˜๋ฅผ ๋กœ์ปฌ๋กœ ๋‹ค์šด ๋ฐ›์Šต๋‹ˆ๋‹ค.

    ~$ git clone https://github.com/gdgand(๊ฐœ์ธGithub ์•„์ด๋””)/ComposeFest2021.git
    
  2. ์ผ์ • ๋ณ„ ๊ฐ ์ฃผ์ฐจ์— ๋งž๋Š” ํด๋” ์œ„์น˜์—์„œ ์ฝ”๋“œ๋žฉ์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. (~/week 1,2,3,4/Compose .../XXXComposeCodelab)

    • ๊ฐ ์ฃผ์ฐจ ๋ณ„ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ๋Š” ์ฝ”๋“œ๋žฉ ์ฝ”๋“œ๊ฐ€ ์ฃผ์ฐจ ๋ณ„๋กœ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐ”๋กœ ์—ด์–ด์„œ ์ฝ”๋“œ๋žฉ์„ ์‹œ์ž‘ํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ๋‹ค๋งŒ, ์ƒˆ๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•ด์„œ ์‹œ์ž‘ํ•˜๋Š” ๊ฒฝ์šฐ์—๋Š” ํ”„๋กœ์ ํŠธ ์ถ”๊ฐ€๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ํ•ด๋‹น ํ”„๋กœ์ ํŠธ๋Š” ์•„๋ž˜์˜ ๋‘ ๊ฐœ ์ž…๋‹ˆ๋‹ค.
      1. 1์ฃผ์ฐจ Jetpack Compose basics
      2. 2์ฃผ์ฐจ Layouts in Jetpack Compose
        path
  3. ๊ฐ๊ฐ์˜ ์ฝ”๋“œ๋žฉ์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. codelab

  4. ์™„์„ฑ๋œ ์ฝ”๋“œ๋ฅผ ๊ฐœ์ธ fork ๋ธŒ๋žœ์น˜๋กœ pushํ•ด์„œ ์—…๋ฐ์ดํŠธ ํ•ฉ๋‹ˆ๋‹ค.

  5. ์ฝ”๋“œ๋žฉ ์ˆ˜๋ฃŒํ™•์ธ์„ ์œ„ํ•ด ์ง์ ‘ ์ง„ํ–‰ํ•œ ์ฝ”๋“œ commit ํžˆ์Šคํ† ๋ฆฌ๋ฅผ ๊ผญ ๋‚จ๊ฒจ์ฃผ์„ธ์š”!


๋งค์ฃผ ๊ณต๊ฐœ๋˜๋Š” ์ž๋ฃŒ๋ฅผ ์ตœ์‹ ํ™” ํ•˜๊ธฐ - GUI๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•

์ž์‹ ์˜ GitHub์—์„œ Fetch upstream ๋ฒ„ํŠผ์„ ์ฐพ์•„ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”. ์ตœ์‹ ํ™”๊ฐ€ ํ•„์š”ํ•˜๋‹ค๋ฉด Fetch and merge ์ดˆ๋ก์ƒ‰ ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์ฃผ๋ฉด ์ตœ์‹ ํ™”๋ฅผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (๋งŒ์•ฝ 'This branch is X commits behind gdgand:main.'์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€๊ฐ€ ๋ณด์ด๋Š”๋ฐ ์ดˆ๋ก์ƒ‰ ๋ฒ„ํŠผ์ด disable ์ƒํƒœ๋ผ๋ฉด ์ƒˆ๋กœ๊ณ ์นจ์„ ๋ˆŒ๋Ÿฌ์ฃผ๊ณ , Fetch๋ฅผ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”.)

images/git-fetch-and-merge

๋ณธ ํ”„๋กœ์ ํŠธ๋Š” ๊ฐ๊ฐ์˜ ํด๋”๊ฐ€ ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค ํ”„๋กœ์ ํŠธ๋กœ ๊ตฌ์„ฑ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค.

ComposeFest2021 ํด๋”๋ฅผ ๋ฐ”๋กœ Android Studio๋กœ ์—ด์ˆ˜์—†๊ณ , week ๋ณ„๋กœ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

SourceTree, GitKraken ๋“ฑ์„ ์ด์šฉํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

SourceTree ์‚ฌ์šฉ

SourceTree๋ฅผ ์„ค์น˜ํ•˜๊ณ , Clone ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

SourceTree ์„ค์น˜ ๋ฐฉ๋ฒ•์€ ์•„๋ž˜ ๊ธ€์„ ์ฐธ๊ณ ํ•˜์„ธ์š”.(SourceTree ์‚ฌ์šฉ ๋ฐฉ๋ฒ•์€ ๊ฒ€์ƒ‰์„ ํ†ตํ•ด ํ™•์ธ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.)

SourceTree ์œˆ๋„์šฐ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

sourcetree

GitKraken ์‚ฌ์šฉ

GitKraken์„ ์‹คํ–‰ํ•˜๊ณ , Clone a repo๋ฅผ ์—ด์–ด์ค๋‹ˆ๋‹ค.

GitKraken ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

gitkraken


๋งค์ฃผ ๊ณต๊ฐœ๋˜๋Š” ์ž๋ฃŒ๋ฅผ ์ตœ์‹ ํ™” ํ•˜๊ธฐ - ๋ช…๋ น์–ด๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•

(๋ฉ”์ธ ๋ธŒ๋žœ์น˜์™€ Sync ๋งž์ถ”๋Š” ๋ฐฉ๋ฒ•)

  1. ํ˜„์žฌ fork ํ•œ remote ๋ธŒ๋žœ์น˜ ํ™•์ธ
    $ git remote -v
    origin	https://github.com/YOUR_NAME/ComposeFest2021.git (fetch)
    origin	https://github.com/YOUR_NAME/ComposeFest2021.git (push)
    
  2. upstream ์œผ๋กœ gdgand ๋ธŒ๋žœ์น˜ ์ถ”๊ฐ€ํ•˜๊ธฐ
    $ git remote add upstream https://github.com/gdgand/ComposeFest2021.git
    
  3. ์ž˜ ์ถ”๊ฐ€๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๊ธฐ
    $ git remote -v
    origin	https://github.com/YOUR_NAME/ComposeFest2021.git (fetch)
    origin	https://github.com/YOUR_NAME/ComposeFest2021.git (push)
    upstream	https://github.com/gdgand/ComposeFest2021.git (fetch)
    upstream	https://github.com/gdgand/ComposeFest2021.git (push)
    
  4. ์ตœ์‹  ์—…๋ฐ์ดํŠธ ํ™•์ธํ•˜๊ธฐ
    $ git fetch upstream
    remote: Enumerating objects: 706, done.
    .. ์ดํ•˜ ์ƒ๋žต
    
  5. ๋‚ด remote fork ๋ธŒ๋žœ์น˜์™€ ๋จธ์ง€ํ•˜๊ธฐ
    $ git merge upstream/main
    
  6. ๋ณ€๊ฒฝ์‚ฌํ•ญ push ํ•˜๊ธฐ
    $ git push origin main