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

開発用アプリで課金テストするためにやること

Afc376e7832d0ad5b6d4d37a486471b0?s=47 numaMyk
March 16, 2022

 開発用アプリで課金テストするためにやること

ラクマ × Voicy × ANDPAD ~ Android開発の裏側 ~

2022/03/16(Wed)
@numaMyk

Afc376e7832d0ad5b6d4d37a486471b0?s=128

numaMyk

March 16, 2022
Tweet

Other Decks in Technology

Transcript

  1. ։ൃ༻ΞϓϦͰ՝ۚςετ ͢ΔͨΊʹ΍Δ͜ͱ ϥΫϚʷ7PJDZʷ"/%1"%d"OESPJE։ൃͷཪଆd 
  8FE  !OVNB.ZL

  2. • Voicy, inc . • Android Engineer #rva_android

  3. Agenda • AndroidͷΞϓϦ಺՝ۚͱ͸ • VoicyͰͷΞϓϦ಺՝ۚ • ։ൃ༻ΞϓϦͰͷϋϚΓͲ͜Ζ • ։ൃ؀ڥͰΞϓϦ಺՝ۚΛݕূ͢Δʹ͸ •

    ·ͱΊ #rva_android
  4. "OESPJEͷΞϓϦ಺՝ۚͱ͸ʁ #rva_android

  5. (PPHMF1MBZͰબ୒Ͱ͖Δ՝ۚܗଶ w ճݶΓͷΞΠςϜ w ফඅՄೳΞΠςϜɿήʔϜͷΨνϟͳͲɺ౎౓ফඅ͢Δ w ফඅෆՄΞΠςϜɿ޿ࠂͷඇදࣔ΍ΞοϓάϨʔυͳͲɺҰ౓ͷߪೖͰ ແظݶʹར༻Ͱ͖Δ w ఆظߪೖɿΦϯϥΠϯࡶࢽ΍ԻָετϦʔϛϯάαʔϏεͳͲɺϢʔβʔ

    ͕Ωϟϯηϧ͢Δ·Ͱࣗಈతʹߋ৽͞Εɺ܁Γฦ͠ར༻Ͱ͖Δίϯςϯπ ͷར༻ݖΛఏڙ͢ΔΞΠςϜ #rva_android
  6. 7PJDZͰͷΞϓϦ಺՝ۚ #rva_android

  7. ফඅՄೳΞΠςϜͱͯ͠ w ύʔιφϦςΟ΁ͷࠩ͠ೖΕ w ϓϨϛΞϜϦεφʔ΁ͷࢀՃݖ w աڈͷϓϨϛΞϜ์ૹ ΛߪೖͰ͖Δ #rva_android

  8. ফඅՄೳΞΠςϜͱͯ͠ w ύʔιφϦςΟ΁ͷࠩ͠ೖΕ w ϓϨϛΞϜϦεφʔ΁ͷࢀՃݖ w աڈͷϓϨϛΞϜ์ૹ ΛߪೖͰ͖Δ #rva_android

  9. (PPHMF1MBZܾࡁಋೖ࣌ͷը໘ભҠͱߪೖϑϩʔͷΠϝʔδਤ #rva_android

  10. #rva_android

  11. ։ൃ༻ΞϓϦͰͷϋϚΓͲ͜Ζ #rva_android

  12. ։ൃϏϧυͷΞϓϦͰɺϥΠηϯεςελʔΛ࢖༻ͯ͠ΞϓϦ಺՝ۚͷςετ ˠ(PPHMF1MBZ$POTPMFͰΞΠςϜొ࿥ͨ͠ΞΠςϜ͕औಘͰ͖ͳ͍ #rva_android

  13. ։ൃϏϧυͷΞϓϦͰɺϥΠηϯεςελʔΛ࢖༻ͯ͠ΞϓϦ಺՝ۚͷςετ ˠ(PPHMF1MBZ$POTPMFͰΞΠςϜొ࿥ͨ͠ΞΠςϜ͕औಘͰ͖ͳ͍ ɹ✗ɹϥΠηϯεςελʔొ࿥͍ͯͯ͠΋ ɹ✗ɹΞΠςϜొ࿥ࡁΈ͍ͯͯ͠΋ ɹɹˠ։ൃϏϧυͷΞϓϦͰߪೖ͢Δ͜ͱ͕Ͱ͖ͳ͔ͬͨ #rva_android

  14. Google Play ՝ۚμΠΞϩάͰࢧ෷͍΋Ͱ͖ͣɺ Ϩγʔτ͕ฦ٫͞Εͣɺ αʔόʔ΍Googleͱͷ݁߹෦෼Λ ؚΜͩߪೖϑϩʔΛ֬ೝͰ͖ͳ͍ #rva_android

  15. ։ൃ؀ڥͰΞϓϦ಺՝ۚΛ ݕূ͢Δʹ͸ #rva_android

  16. ։ൃ؀ڥͰΞϓϦ಺՝ۚΛݕূ͢Δʹ͸ w ࣗࣾͷαʔόʔͱ(PPHMFؒͷߪೖϑϩʔΛؚΊͨγφϦΦΛ։ൃ؀ڥͰݕ ূ͢Δʹ͸ݶఆͨ͠ϢʔβʔʹͷΈNBOBHFE(PPHMF1MBZʹެ։ w ݶఆެ։ΞϓϦͰςετ͢ΔͨΊͷ(PPHMF8PSLTQBDFΞΧ΢ϯτΛ४උ w (PPHMF1MBZ$POTPMF͔Β(PPHMF"1*ͱͷ࿈ܞʹ͸αʔϏεΞΧ΢ϯτΛ ࡞੒͢Δ #rva_android

  17. NBOBHFE(PPHMF1MBZͱ͸ʁ w اۀͱͦͷࣾһͷΈʹݶఆެ։͞ΕͨΞϓϦΛೖख͢ΔͨΊͷετΞ w ͓΋ʹۀ຿༻ΞϓϦͰར༻͢Δ NBOBHFE(PPHMF1MBZ #rva_android

  18. ̍ɽ(PPHMF1MBZ$POTPMFʹ։ൃ؀ڥΞϓϦΛ৽نొ࿥ w (PPHMF1MBZ$POTPMFʹϩάΠϯ͠ɺɹɹɹɹ։ ൃ༻ΞϓϦΛొ࿥ #rva_android

  19. (PPHMF8PSLTQBDFͰ૊৫௥Ճ w (PPHMF8PSLTQBDFʢچ(TVJUFʣʹ ϩάΠϯ͠ސ٬*%Λίϐʔ #rva_android

  20. NBOBHFE(PPHMF1MBZͰ૊৫௥Ճ w ݶఆެ։͢ΔΞϓϦͷ(PPHMF1MBZ$POTPMFͰΞϓϦͷ NBOBHFE(PPHMF1MBZΛ༗ޮʹ͢Δ w ެ։ઌͰ͋Δ૊৫Λ௥Ճ͠ɺͰίϐʔͨ͠ސ٬*%Λอଘ #rva_android

  21. "OESPJEͷઃఆͰ࢓ࣄ༻ϓϩϑΝΠϧΛ༗ޮʹઃఆ͢Δ (PPHMF8PSLTQBDF4VQQPSUʹ ໰͍߹Θͤͳ͕Βઃఆ͢Δ͜ͱΛ ͓͢͢Ί͠·͢ #rva_android

  22. ։ൃΞϓϦΛΠϯετʔϧ͢Δ  "OESPJE୺຤͔Β(PPHMF8PSLTQBDFΞΧ΢ϯτʢࣾ༻ΞυϨεʣΛҰ୴࡟আ ޙɺ࠶౓ΞΧ΢ϯτΛ௥Ճ • ΞΧ΢ϯτ௥Ճ࡟আ͸͜͜ΛݟͯͶʂ ઃఆύεϫʔυͱΞΧ΢ϯτ(PPHMFΞΧ΢ϯτ  "OESPJE%FWJDF1PMJDZΛ࡟আͯ͠ɺ࠶౓"OESPJE%FWJDF1PMJDZΛΠϯετʔϧ 


     "OESPJE%FWJDF1PMJDZΛΠϯετʔϧ͢Δͱࣗಈతʹ࢓ࣄ༻ϓϩϑΝΠϧ͕௥Ճ ͞ΕΔ 
 ࢓ࣄ༻ϓϩϑΝΠϧ࡟আ͸͜͜ΛݟͯͶʂ 
 ઃఆύεϫʔυͱΞΧ΢ϯτ࢓ࣄ༻࢓ࣄ༻ϓϩϑΝΠϧΛ࡟আ 
  ࢓ࣄ༻ͷϖΠϯΛ։͖ɺ伴ΞΠίϯͷ͍ͭͨ1MBZετΞͰ։ൃ༻ΞϓϦΛݕࡧ͠ ͯΠϯετʔϧ ࢓ࣄ༻ϑΝΠϧΛ௥Ճͨ͠୺຤ͷ ΞϓϦҰཡ #rva_android
  23. "1*ΞΫηεΛڐՄ͢ΔαʔϏεΞΧ΢ϯτΛ௥Ճ͢Δ Google Cloud Platform ʹΞΫηε͠ɺαʔϏε ΞΧ΢ϯτΛ௥Ճͯ͠Ωʔ৘ใ Λೖख͓ͯ͘͠ʢαʔόʔαΠυͰGoogle Play Developer APIͷ։ൃʹඞཁʣ

    #rva_android
  24. 1.ઃఆʼAPIΞΫηεʼαʔϏε ΞΧ΢ϯτʹGoogle Cloud PlatformͰ௥Ճͨ͠ΞΧ΢ϯτ৘ใ͕ग़ͯ͘Δ 2.ݖݶλϒΛ։͖ϑΝΠφϯεܥͷݖݶʹνΣοΫΛೖ ΕΔ • ച্σʔλɺ஫จɺղ໿Ξϯέʔτͷճ౴ͷӾཡ • ஫จͱఆظߪೖͷ؅ཧ

    (PPHMF1MBZ$POTPMFͰ"1*ΞΫηεΛڐՄ͢Δ
  25. (PPHMF1MBZ%FWFMPQFS"1*ͷ͸·ΓͲ͜Ζ ؀ڥ͝ͱʹVoided Purchases APIͷϨεϙϯεΛ෼ࢄ͢Δʹ͸ɺPlay consoleͷΞΧ΢ϯτΛ؀ڥ͝ͱʹ࡞Γ௚͞ͳ͍ͱ͍͚ͳ͍ https://stackoverflow.com/questions/31833326/connect-more-than-one-project-id-to-the-google-play-developer-console #rva_android ཧ૝ Googleͷ࢓༷ ҰͭͷΞΧ΢ϯτ

    Dev
 Stage
 Prod
 Dev
 Stage
 Prod

  26. ·ͱΊ w ࣗࣾͷαʔόʔͱ(PPHMFؒͷߪೖϑϩʔΛؚΊͨγφϦΦΛݕূ͢Δʹ͸ ݶఆެ։ΞϓϦΛNBOBHFE(PPHMF1MBZʹެ։͢Δඞཁ͕͋Δ w αʔόʔαΠυͱ(PPHMFͱͷ࿈ܞʹ͸αʔϏεΞΧ΢ϯτΛ࡞੒͢Δ #rva_android

  27. w "OESPJEͷΞϓϦ಺՝ۚΛཧղ͢Δͷʹ͓͢͢Ίͷࢿྉ w <%SPJE,BJHJ>3Fθϩ͔Β࢝ΊΔ1MBZ#JMMJOH-JCSBSZ w (PPHMFެࣜ w (PPHMF՝ۚγεςϜ(FUUJOH3FBEZ w (PPHMF1MBZͷ՝ۚγεςϜͷ֓ཁ

    w (PPHMF$MPVEαʔϏεΞΧ΢ϯτ #rva_android
  28. ੋඇ7PJDZௌ͍ͯΈͯʂ