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

IBMCloudでAndroidアプリ開発

 IBMCloudでAndroidアプリ開発

本資料は2019年5月26日に開催されたAndroid Bazaar and Conference 2019 Springでの登壇資料になります。

Taiji HAGINO

May 26, 2019
Tweet

More Decks by Taiji HAGINO

Other Decks in Technology

Transcript

  1. © 2014 IBM Corporation © 2019 IBM Corporation >7B 8]

    fU CReZgV 6 Uc ZU 6aa]ZTReZ hZeY B SZ]V f UReZ DgVcgZVh GHG -/ >7B 9VgV] aVc 6Ug TReV
  2. ) 2 -/ :2 2 s j s t j

    y s t j yvw np o t j vu s t j k k s t
  3. : ) / / / u s j x l(JMFi

    i MCB P m j x l i m j ki x j i DD RN k j k x j i i MHM x k
  4. 2 ) GL 1 I j IVR Zd R aRce

    W MOJCTGCD DSDJMNDO CSMB D D KP DSDJMNDO CSMB D )G V 2D CDO 1/ / / DSDJMNDO CSMB D 1 1 / / DSDJMNDO CSMB D / / -/ DSDJMNDO CSMB D 1: OMFO K L FDO / / DSDJMNDO CSMB D /1 1 )JGDL DSDJMNDO CSMB D : / / GFG J DSDJMNDO CSMB D : 1/ -
  5. 15 15 ĘIBM Mobile First Foundation ‰d Back-end Front-end 30%

    x•Ã|° ΋ (mobile UI) 70% x•à 1) éÝćċðÔ ĈĒäĒđØĐáĒæăĐò øîÞØĐó ýîåć†k ÚûĊÕĐ ÓýċŒ9 sB+ ñĒë‚ =PL Jn‘Y € dR ÞĊîåćđĎß ÓýċàĒåĉĐo b UI/UX~} Web? Hybrid? Native? íĒĂďĒޏf ÓýċfW] ĊÕûãÕÞČ fđðçò
  6. 16 p ÷Õüċîó Web ĄøÕČ Web (üĊÖäĒÓÞé çĕ öÕðÔü å×Č

    (/‹ãÕòÑ2 Ã{¼¾xm) ÃHTML5 ċêĒçÑ ùîàĒæ HTML5 + öÕðÔüUI F < 0‹ öÕðÔü Ė ‹HTML5 e• 2 öÕðÔü f Web(HTML5/JavaScript) Ē öÕðÔü(Obj-C,Swift,Java,C#)ÄZ Pure native n LVS n n p t n B SZ]V f UReZ n ĘIBM Mobile First Foundation
  7. 17 B SZ]V : eVcacZdV 6aa]ZTReZ E]ReW c Backend DB

    SAP/ER P Clou d TÓýċA TÓýċB TÓýċC š› TÓýċA TÓýċB TÓýċC š› TÓýċA TÓýċB TÓýċC š› Ğ Ĝ Ĥ ĥ Ġ ě Ě ğ ģ ġ ħ Ģ X u Ħ ĝ o b Backend DB SAP/ER P Clou d œ¦¥¤¦¢™§££¥¤¦¢–Ďßob¢ª ˜ ìÕčÞòÓîýñĒò šž TÓýċB TÓýċC TÓýċA éÝćċðÔĒ
  8. 97 LVS u u u LVS u u u u

    ( p u p u 7VR u u PB UV]Q u P u uQ ?HE PKZVhQ ?HE PKZVhQ u u ?RgR:: u u P Q G:HI hRc ?RgR:: u u B SZ]V f UReZ u u u # IBA ?RgRHTcZae u u# E6 : PKZVhQ E6 : PKZVhQ IBA. u w LVS x IBA ?RgRHTcZae u u# E6 : PKZVhQ E6 : PKZVhQ B SZ]V f UReZ x hRc u u hRc hRc x B SZ]V f UReZ DS[VTeZgV&8 HhZWe ?RgR 8 LVS hRc H6E 8>8H k(DH 8] fU 6aa 8 VTe &4 HR]Vd cTV u
  9. p B:6E •HTTP (REST, SOAP), JMS •SAP •SQL •HTTP, Cast

    Iron •ÞĊÖó •ãĒúç •øîÞØĐóđ ãĒúç n B:6E u up p u n p p n n n u 97 n p u TÓýċA TÓýċB TÓýċC TÓýċA TÓýċB TÓýċC TÓýċA TÓýċB TÓýċC Ğ Ĝ Ĥ ĥ Ġ ě Ě ģ ĥ o b Ħ ĝ o b šž —€đCAí×îÞđûÙĒĀîò.IđýĎòâČ.Iĕ ¤œž š¦¡¨§¤¡ Ÿ¤¦¡§«© G LCOMGC GLCMTP x k m u u m ?HDC u u m m w x m HHD m j m p m u m w u x p m w ux m m p u w u u x m p w u u x n >7B 6aa]V )*- 0
  10. 21 B SZ]V f UReZ l DgVcgZVh Feedback Management §

    B SZ]V f UReZ n n n n p u LVS u n n o § p u u u u n n6 R]jeZTdn n n p u o § B SZ]V f UReZ n u o § B SZ]V f UReZ n8 cU gRn>DHn6 Uc ZUnMR RcZ nLZ U hd *)nGVRTe CReZgVn LVS H9 n p u n LVS u nEL6 u o § B SZ]V f UReZ n u n u o
  11. 22 B SZ]V f UReZ l Feedback Management k k

    / y / [5 u n u p u 6E> o n – u u u o n8>(89 u o n u p u u u o >7B 8] fU n u p u u • u p u o >7B 8] fU u o u LRed 6E> nAR XfRXV IcR d]Re cn9ZdT gVcjn 8 gVcdReZ nCRefcR] AR XfRXV J UVcdeR UZ XnI V 6 R]jkVc o u n u n o p u u u u u o
  12. 23 B SZ]V f UReZ l u Feedback Management Reporting

    for Statistics and Diagnostics Mobile Foundation ÓýċàĒåĉĐ fíĒĂÄýĎúæĉõĐß ÓýċàĒåĉĐđûÔĒóøîÞÄob ØĐëĒýĊÕèđÓýċàĒåĉĐÄýĎ úæĉõĐßÀÜøôĐç ñøÕçđĊĐëÕĂ ÓýċàĒåĉĐđâĒó Mobile Foundation obâĐêĒČ ĄøÕČR f ±ÌÆ UD ÓýċàĒåĉĐđøĒæĉĐob ØĐëĒýĊÕèđøîÞØĐóåçðĂ ÀÞ ĊÖóãĒúç Mobile Foundation ãĒøĒ ĈĒäĒ€À ĄøÕČÄCA ĀîåćÓîýÀ ãĒúçUD JSON.I øîÞØĐóGrdÄ ÓìýëĒđĊÕüĊċĒ q}ÀĎßē} qýîåć†k ÞĊÕÓĐòãÕóÄ ÓýċàĒåĉĐċêĒç ìÕčÞò ÓîýñĒò ĄøÕČWeb ÓýċàĒåĉĐ öÕðÔüIDE ( Xcode, Android Studio Visual Studio ) Eclipse Plugin ºÄÄIDE âĀĐóđĊÕĐđ ÕĐëĒû×Ēç SDKs Android iOS Windows Phone 8.1 Windows 10 UWP WebüĊÖäĒ Windows 8.1 ÞĎçđýĊîòûÙĒĂ IčÕĆĒ O#µÏ» %Q"uÂçòčĒæ ãĒøĒq$ ûčĒĂďĒÞ F<ÞĊîåćÀ ýĊîòûÙĒĂčþČÄ /ÝąýíąĒ ĄøÕČRdÄ ÕþĐòÝąýíąĒ n n n n u úČóđØĐæĐ ĄøÕČđüĊÖäÕĒ åāćčĒëĒ ftãĒøĒ ĄøÕČR qýîåć†k Xamarin fïĒČÝîò
  13. 24 ?HDC • 6E> n u p n n n

    •6:H ./ u o u u n u n u u • p u u n • u n u u n u p u u p u MOD A TR]He cRXV > UViVU97 8 cU gR He cRXV 8 cU gR Z]V 6 Uc ZU u 8 cU gR ! # ZDH u 8 cU gR ! # LZ U hd *) J ZgVcdR] LZ U hd 1 J ZgVcdR] 8 cU gR # & u & & & & u u v. B7 4. B7 u u u u u u u u ?HDC u( ?HDC ċčĒåĉôČ (SQL) u n u o p u o p u o B SZ]V f UReZ u LA?HDCHe cV 6E> u ?HDCHe cV G97BH# :GE# 7RT &V U# B SZ]V f UReZ u u u IIE(H u u
  14. 25 u n u n u u p u ñĒë

    TñĒë u u u B SZ]V f UReZ u u – 6aaHe cV ÓýċŒ p / Š’ÓÞéç _ 0 ìÕčÞòđÓîý ñĒò 1 O# 97 ?HDCçòÓ *) /‹ãĒøĒ ‚ 2 ė D6feYþĒç € ûčĒĂďĒÞ - Óýċ CA í×îÞ . âĒó ” , J¶Ò‘Y
  15. B SZ]V f UReZ u M * DRfeY u u

    u § – D6feY u u – u u u – u u – w >9x o HHD 97 ?HDC x § n p u – u n6:H ./ ?HDC u u – n – u n u u , – § p – LVS u – - § – u u . u § LVS u u – – LVS u u o p u n – o / u § u u up u – u u u n u u o u u p u up u u 0 p u § 8 cU gR p u – u n u u ?RgRHTcZae( IBA # 1 § u u – ?HDC o – u u u u u 2 § HHA – u u *) u u § u u u u – u G:HI 6E>wC UV [d(?RgR 6E u ux nDRfeY p u § HFA – EcVaRcVU&deReV V e
  16. 28 Mobile FoundationãĒøĒđÓìýëĒÄ,$ • *;åçðĂÇÄÓÞéçÑĄøÕČđûčĐóċĒà – ft³b·Ë¸®Ì¯ÃJSONûÙĒĀîòÃ.I – ˆ®öîòďĒÞÇ7@¿ċÞØçò(KÑ\͸»Éà ãĒøĒÄãĒúçÑpÈ$й

    – XSLTÑd· 0´ÂSOAPčçÿĐçÑ\ • éÝćċðÔ – vhÃãĒøĒđãÕóĀ?ÀiSÑ"uà • R – ĈĒäĒđÓÞåĉЬñøÕç¬ÓýċB+Ävh “ • ñĒë%Q – ñøÕçÄ JSON StoreÀÄ%QÑ4Nà • ĄøÕČđĈĒäĒđØĐáĒæăĐò – ýîåć†k • ãĒøĒftÄ^ – ãĒøĒđãÕóJS fÃåĐýČÂAPIÑH – ÛçëĂđÓìýëĒÄ»ÉÃJava API ÑH • ÞĊÕÓĐòftÄ^ – ÁÒÂøîÞØĐóđåçðĂ&·Êƒ·»API MF Server SQL / JDBC Java ÓìýëĒ REST / SOAP Enterprise back-ends and cloud services Enterprise back-ends and cloud services *;åçðĂË ÞĊÖóđãĒúç n p u u u u Node.js u u u Java APãĒøĒ u u #
  17. 29 MobileFirst ãĒøĒ MobileFirst SDK ùîàĒæµÏ» ċêĒç 1 ìÖĐĎĒó 4

    WebċêĒçÑPL App Store Web ċêĒç ÝąîåćµÏ »ċêĒç 2 „… 3 PLÑl€ Mobile FoundationÄ,$¬ãĒøĒ²ÍPLÑjGŒ9 • ÓýċàĒåĉĐĔWebċêĒç)đéÝćċðÔĒ FixÂÁÄPL • Mobile Foundation MŒ9" • öÕðÔüÄ,$ – App Store – Google Play – Windows .. gŽē6S 3ę4‡ • 8ÓîýñĒò ÑãÿĒò p u n p
  18. 30 B SZ]V Zcde u u n u u n

    u ,) 5 B SZ]V Zcde u DA )MCD 6E>d p u * u p u • k j k NNJD -MMFJD -) GBOMPME , u B SZ]V Zcde HVcgVc dX gX gbgZ jaX f Yc e X Wf 678 ,21- 21 ,11 22, Bj6aa 888 , -1*2 Bj6aa >7B6aa / k . u 6E> / u p u p u 0 - u 97 6aa]V X]V BZTc d We HBH 6E> ZDH u 6 Uc ZU HBH LZ U hd u up 97 p 97 97 k
  19. 31 u up AZgV u q u u AZgV JaUReV

    u y u p uz u n p B SZ]V Zcde u u u u mHVX V e GVd ]gVc 6URaeVc m m m u p u # u p • u & u u ( WW # & u • & u u u & u p u u mHVX V e GVd ]gVc u n # m n u m u u ( WW ZDH 6 Uc ZU 8 cU gR Schema.json Segment.json
  20. 33 k p u – u u HHD B9B BRRH,/)#

    Zi u p u u u w x u p u u ! j ODJL 2 UJE CNCH M NS hp u u MAGJD,GOP IBMÄMDMy'À·¾ÅMaaS360 33 New 7.1
  21. 35 u u p u 35 l u u u

    u u EfdY C eZWZTReZ l x u
  22. 38 B SZ]V f UReZ )DL DO ( BIDLC VP

    DK ( BIDLC VP DK 2GADO V OMEGJD # c L6H c I TRe DA OMUV > eVc Ve , DOSDO , DOSDO MAGJD DSGBD u p u 6aa]V 6EC X]V 8B# DA BJGNPD NJRFGL ( MAGJD,GOP 2 ( 97 # c DcRT]V c BjHFA u u NNJGB GML )DL DO u u ZDH 6 Uc ZU# m B SZ]V f UReZ u u nLVS 6E u u 6TeZgV&6TeZgV m 97 n 6 MAGJD,GOP )2/ k BMCD LCOMGC RCGM GPR J RCG )MOCMS k hRc hRc hRc hRc 6E> 8 VTe ac WVddZ R] # SDL u u 7 : 6UUcVdRS]V UVgZTV .) )))6E> u (
  23. 42 B SZ]V f UReZ - k k l MAGJD

    L DONOGPD NNJGB GML J EMOKm p p n n u E]ReW c D &EcV (8] fU# LZ 7(: ü u u ü w x ü ü n u ZDH( 6 Uc ZU 7(: 6 7 8GB ZDH( 6 Uc ZU LZ iii iii 7(: 7(: 7(: 7(: B SZ]V CReZgV # B SZ]V jScZU # B SZ]V LVS E8 LVS LZ CReZgV LZ jScZU MAGJD ,MRLC GML D &EcV (8] fU# HFA IIE G:HIWf] H6E D9ReR 8] fUR e B SZ]V Zcde n u n n u ü t LVS( ü 8] fU ü n n ü >I u ü u >I u u n ( ( y
  24. 8 cU gR BZiVU J> 44 gd Y > gd

    Ygd w r /NF OJF gd c ! AJNFO R 2< gd J > gd ODJL 4J RS 4OTNFCSJON gd c 1O FOUC gd t 5 CUC>E JPS 1>> EO FOUC gd /NHTLC R 6ONJE no t 5 vs t x ebgd o J > gd o /NF OJF gd W , W o A D gd nzKDHÄÓýċѽÄâĒó¿3a"u­`hf Ñ3a
  25. JW F! u hp A D m i ODJL 4J

    RS TNSJM A D CSJU 2 UJE /<6R - 2 1 B <3 ISML < 0 61 E CS F ( ) ( - P. - DOF . - ISML. ! A D vs A D vs vs A D vs x A D vs 4<4 1LJ NS TNSJM 4<4 1LJ NS TNSJM 4<4 y a lt A D vs wBZiVU JZx 45
  26. u 46 )MOCMS SDL B SZ]V Zcde u u u

    PC or or p u Java or JavaScript 1. Eclipse w/THyM 1. MobileFirst u u u u - Xcode - Android Studio -Visual Studio -eclipse 2. Cordova iOS/Android 3. mfpdev u u 4. html/JavaScript 5. p up u u mfpdev app preview 6. OS u u cordova run 7. 1. MobileFirst u u u 2. Java / JavaScript u 3. (xml) 4. u mfpdev adapter build 5. u u 6. (swagger x & VT]ZadV
  27. VT]ZadV * :T]ZadV B SZ]V Zcde HefUZ I jB nB

    u n6 Uc ZU H9 :T]ZadV p >9 n6 Uc ZU ZDH u u 8 cU gR 47
  28. VT]ZadV 8 cU gR oB SZ]V Zcde f UReZ H9

    8 cU gR o 48 w x B SZ]V Zcde u u u n VT]ZdaV u o nB SZ]V Zcde f UReZ H9 T cV o
  29. 50 B u u n u u VT]ZadV u o

    VT]ZadV - p up u u ?RgRHTcZae EH 8 cU gR o u u o p p u w8A># GVXZdeVc 6aa qB SZ]V Zcde u u : TcZae 6aa q LVS u Ef]] 6aa q u u u EfdY 6aa q u u JaUReV 6aa q u u LVS u CLI¿3wµÏ¾®Î mfpdev app webupdate --noprompt --ddebug
  30. p 52 G TGE p Xamarin 1. u Xcode Android

    Studio Visual Studio 2. MobileFirst SDK u - -CocoaPod Gradle NuGet 1. MobileFirst u u u 3. mfpdev n u MobileFirst u u 4. 5. OS u u 6. 1. Xamarin w n u x 2. Xamarin SDK 3. [project-root]/[ProjectName/App.cs] n u u n https://mobilefirstplatform.ibmcloud.com/tutorials/e n/foundation/8.0/quick-start/xamarin/
  31. 6 Uc ZU 57 u u 6 Uc ZU HefUZ

    cRU]V B SZ]V Zcde H9 u n u n • o B SZ]V Zcde H9
  32. * D6feY u u u 65 u u u u

    6E> u ÓÞéçđòĒÞĐÄ!> B SZ]V Zcde HVcgVc o n n >9 ow p * x n o * p u # u p u # B SZ]V Zcde HVcgVc n u u , u # n n u u u p n #o u u n >9n u u p u ċêĒçÄ‚ * n u u u p u u u u p u , >9 n u u n n n
  33. p u HTTP/1.1 200 OK Content-Type: application/json Cache-Control: no-store Pragma:

    no-cache { “token_type”: “Bearer”, òĒÞĐđëÕýÅ:Ã "Bearer" (OAuth 2.0 Bearer Token Usage V Ã]E) "expires_in": 3600, "access_token": "yI6ICJodHRwOi8vc2VydmVyLmV4YW1", "scope": "scopeElement1 scopeElement2“ } MGAJD,GOP k • >93 >9 • u 3 u D6feY u # u n u p u • • u 3 u # # k j k u p n u u u o up u u n u p u u n # o m u p u n u • o m u p u p u n u p u • o 66
  34. 68 EL6 OMFODPPGSD TDA NNP 3 EL6 n u u

    u n LVS o 8Yc V HRWRcZ EL6 u nZDH 6 Uc ZU EL6 u o B SZ]V f UReZ n> ZT u u 6 Xf]Rc u u u n EL6 o u bfZT efe cZR]
  35. 69 GVRTe CReZgV D B GSD 1P3 GVRTe CReZgV u

    u n u n n o B SZ]V f UReZ nGVRTe CReZgV H9 o H9 d W c GVRTe CReZgV u o dY ce efe cZR]
  36. 77

  37. 80 • u • u u • u u •

    • • EL6 GVRTe CReZgV /( )JMRC r p u
  38. 85

  39. 88

  40. 91

  41. 94

  42. 96 u n n n>7B n o n n •

    o n ny z n o n n n>7B o n>7B u n>7B n • o >7B n n u n>7B • o u n >7B n • o n n n n n • o u n >7B u o u u u u n u u p u n n u n u u n o n t u u • o n >7B n o u n o >7Bn>7B nZS T n8>8HnIZg ]Zn LVSHaYVcVnOdVcZVd n > eVc ReZ R] 7fdZ Vdd BRTYZ Vd 8 ca cReZ o u n >7B o >7B nhhh ZS T (]VXR](T ajecRUV dYe ] o AZ fi nAZ fd I cgR]Ud o BZTc d We LZ U hd LZ U hd CI LZ U hd BZTc d We 8 ca cReZ o JC>M IYV DaV c fa o ?RgR ?RgR DcRT]V o