Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android + AWS Amplify로 
AWS 입문하기

Haeun
July 01, 2020

Android + AWS Amplify로 
AWS 입문하기

Android + AWS Amplify 입문 블로그 시리즈를 재구성

Haeun

July 01, 2020
Tweet

More Decks by Haeun

Other Decks in Technology

Transcript

  1. ߊ಴੗ ࣗѐ • Classmethod, Inc. (௿ېझݫࣗ٘ ઱धഥࢎ) नੑ ূ૑פয •

    ؀೟ ੤೟ द੺ীח Java ਤ઱੄ ೐۽ં౟ ૓೯ ࠶۽Ӓ QR
  2. ѐߊ ജ҃ • Windows10 • Node.js ߡ੹ 10.x ੉࢚ •

    Android Studio 3.6 ੉࢚ • Android SDK ߡ੹ 16 (Android 4.1) • AWS Management Console য஠਍౟ • Android, Amplify ೐۽ં౟৬ Virtual Deviceܳ ޷ܻ ࢤࢿ ೧ل Ѫ
  3. • AndroidManifest.xml ী ੋఠ֔, ֎౟ਕ௼ ੽ࣘਸ ೲоೞח ௏٘ ୶о •

    build.gradle (:app) ী aws mobile client, auth, cognitoauth SDK ܳ ୶о • Auth UI ܳ ࢎਊೞӝ ਤೠ ࢜۽਍ Activity ࢤࢿ Android ೐۽ં౟ ࣻ੿
  4. ఫझ౟ ੑ۱஢ (EditText) ߡౡ (Button) ɾ־ܰݶ ੑ۱ೠ ఫझ౟ܳ DynamoDB۽ ੹࣠

    ɾؘ੉ఠܳ ࠛ۞১ ܻझ౟ (ListView) ɾSub Item਷ ੉ߣী ࢎਊೞ૑ ঋ਺ activity_main.xml ࣻ੿
  5. झః݃ ࣻ੿ [೐۽ં౟] – [amplify] – [backend] – [api] –

    [APIݺ] – schema.graphql MainActivity੄ ਃࣗী ݏ୾ झః݃ ࣻ੿
  6. Android ೐۽ં౟ ࣻ੿ • build.gradle (Project)੄ build:gradle ߡ੹ਸ 3.2.0۽ ࣻ੿,

    appsync build pluginਸ ୶о • build.gradle (:app)ী appsync client SDK৬ ೒۞Ӓੋ ୶о • AppSyncܳ ࢎਊೞӝ ਤೠ AppSync Client ௿ېझܳ ߹ب۽ ࢤࢿ • MainActivityী ఫझ౟ܳ ୶оೞݶ DynamoDBী ੷੢, ؘ੉ఠܳ ੍যٜ੉ח ௏٘ܳ ੘ࢿ
  7. • ࣚ੉ ݆੉ оח ੘সٜਸ AWS ஏীࢲ ੗زਵ۽ ೧઱ӝ ٸޙী

    ѐߊ ੗୓ী ૘઺ ೡ ࣻ ੓׮. • ୭न ߡ੹੄ build.gradleীࢲ ഐജغ૑ ঋח ࠗ࠙੉ ੓য ইए਑੉ ੓঻׮. • ৈ۞ ࢲ࠺झٜҗ ా೤غয ੓ӝ ٸޙী ׮ܲ ࢲ࠺झٜب द೷೧ࠁҊ र׮.