Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Yet Another Cross Platform Development
Search
Nobuhiro Ito
August 26, 2015
Programming
0
4.1k
Yet Another Cross Platform Development
2015/08/26 関西モバイルアプリ研究会 #5 (Kyoto)
Sample:
https://github.com/iseebi/J2ObjCSample
Nobuhiro Ito
August 26, 2015
Tweet
Share
More Decks by Nobuhiro Ito
See All by Nobuhiro Ito
Bitriseで本をビルドする / Build a book with Bitrise
iseebi
0
130
BitriseでmacOSアプリをビルドする / Build macOS apps with Bitrise
iseebi
1
710
iOS/Androidアプリ転送ツール TransporterPadの紹介
iseebi
0
6k
Xamarinアプリとプッシュ通知
iseebi
2
1.6k
Apple Developer Enterprise Program でどこまでいけるのか
iseebi
0
730
ReactiveProperty を使ったアプリの設計に Realm Xamarin を組み合わせる
iseebi
0
600
ReactiveProperty で Xamarin アプリの作り方が変わった
iseebi
3
1.6k
600件のPull RequestからみたXamarinのはまりどころ
iseebi
3
4.1k
XamarinでPDFを作る
iseebi
1
1.7k
Other Decks in Programming
See All in Programming
CSC305 Lecture 13
javiergs
PRO
0
130
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
220
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
150
Kaigi on Rails 2024 - Rails APIモードのためのシンプルで効果的なCSRF対策 / kaigionrails-2024-csrf
corocn
5
3.5k
Identifying User Idenity
moro
6
8.3k
RailsのPull requestsのレビューの時に私が考えていること
yahonda
5
2.3k
Golang と Erlang
taiyow
8
1.9k
Universal Linksの実装方法と陥りがちな罠
kaitokudou
1
230
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
980
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
650
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
250
カスタムしながら理解するGraphQL Connection
yanagii
1
1.3k
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Build The Right Thing And Hit Your Dates
maggiecrowley
32
2.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
355
29k
Embracing the Ebb and Flow
colly
84
4.4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
504
140k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Typedesign – Prime Four
hannesfritz
39
2.4k
Transcript
:FU"OPUIFS $SPTT1MBUGPSN%FWFMPQNFOU !JTFFCJ ؔϞόΠϧΞϓϦݚڀձ 8FE
!JTFFCJ /PCVIJSP*UP 'FOSJS*OD .PCJMF"QQMJDBUJPO&OHJOFFS IUUQJTFFCJIBUFOBCMPHDPN
ຊൃച
"OESPJEओମͷ ΫϩεϓϥοτϑΥʔϜ ωλΓ·͢
None
ͷ͠·ͤΜ
None
+0CK$ w +BWBΛ0CKFDUJWF$ʹม͢Δɻ w +BWBΛ0CKFDUJWF$ʹม͢ΔίϚϯυͱɺ 0CKFDUJWF$༻+3&ΤϛϡϨʔγϣϯϥΠϒϥϦͷ ηοτɻ w (PPHMFɻ*OCPYͱ͔ͰΘΕ͍ͯΔɻ
͔͍ͭͲ͜Ζ w Ξϗ΄ͲෳࡶͳॲཧΛJ04"OESPJEͰ͋Θ͍ͤͨ w ͢Ͱʹ"OESPJE൛͕͋Δ w "1*·ΘΓ͕ผग़͠Ͱ͖Δײ͡ʹͳͬͯΔ w ΫϩεϓϥοτϑΥʔϜ։ൃ͍͚ͨ͠Ͳ ͕ۚͳ͍ɾਓ͕͍ͳ͍
'3&&
͔͍͔ͭͨ w "OESPJEͱJ04ͷϓϩδΣΫτΛ ૬ରύεͰࢀরͰ͖ΔҐஔʹஔ w "OESPJEଆͰ(SBEMFʹՃ͢Δ Ξϊςʔγϣϯ w J04ଆͰ$PDPB1PETͰΠϯετʔϧ͢Δ
ίϚϯυࠐΈͰ߱ͬͯ͘Δ w J04ଆʹม༻ͷλʔήοτΛՃ͢Δ
ϓϩδΣΫτஔ
"OESPJEଆϥΠϒϥϦՃ compile 'com.google.j2objc:j2objc-annotations:0.1'
ίʔυॻ͘ มॲཧରΛ ύοέʔδʹ͓ͯ͘͠ Ϋϥεϝιουʹ มޙͷ໊લΛ !0CKFDUJWF$/BNFͰ ࢦఆՄೳ
$PDPB1PETΠϯετʔϧ platform :ios pod 'J2ObjC', :git => 'https://github.com/goodow/j2objc.git' ຊՈʹ͋Δͷݹ͍
Ҏ߱Ͱͳ͍ͱ!0CKFDUJWF$/BNF͕Πέͯͳ͍
"HHSFHBUFλʔήοτՃ
CLASS_PATH=../android/app/src/main/java CONVERT_CODE_BASE_PATH=$CLASS_PATH/net/iseteki/j2objcsample/library OUTPUT_CODE_PATH=ConvertedCodes cd $SRCROOT find $CONVERT_CODE_BASE_PATH -not -name 'platform'
-type d -print0 |\ while IFS= read -r -d $'\0' line; do Pods/J2ObjC/dist/j2objc \ --doc-comments \ --no-package-directories \ --strip-reflection \ -use-arc \ -sourcepath $CLASS_PATH \ -d $OUTPUT_CODE_PATH $line/*.java done --doc-comments ɹˠ+BWB%PDΛม --no-package-directories ɹˠσΟϨΫτϦߏΛϑϥοτʹ --strip-reflection ɹˠϦϑϨΫγϣϯ༻ͷίʔυΛੜ͠ͳ͍ -use-arc ɹˠ"3$Λ͏ -sourcepath ɹˠιʔεશମͷύε -d ɹˠग़ྗઌ
None
None
+0CK$ͷΠέͯͳ͍ͱ͜ w ग़ͯ͘Δ0CKFDUJWF$ͷίʔυ͕ΘΓͱ೦ɻ w -JTU5ͱ͔͕+BWB6UJM-JTUͱ͔Ͱग़ͯ͘Δ w தݟͨΒෛ͚ w 4XJGUϒϦοδ͠Α͏ͱͨ͠ΒखݩͰ͏·͍͔ͣ͘ w
4XJGUͰ͏ࣄྫ͋ΔΈ͍ͨͳΜ͚ͩͲʜ
ΫϩεϓϥοτϑΥʔϜൺֱ 9BNBSJO 3PCP7. +0CK$ Α͍ 8JOEPXTΧόʔՄೳ $FS͕͏Ε͍͠ ࣮͋Δ 9BNBSJO΄Ͳߴ͘ͳ͍ ,PUMJO͍͚Δ
ϝϞϦޮྑ͍ ͓͔͔ۚΒͳ͍ ม෦Ҏ֎௨ৗ։ൃՄ ਓతϦιʔε֬อ༰қ ࣮͋Δ *OCPY Α͘ͳ͍ ༗ྉɾ݁ߏߴ͍ ΤϯδχΞ֬อݫ͍͠ ʁ ߴ͘ͳ͍ʹ͠Ζ༗ྉ ࣮͕ඍົ +BWB ग़ͯ͘Δίʔυ͕ΞϨ
·ͱΊ w +0CK$ࠓͷͱ͜ΖݱͰ࠷ಋೖ͍͢͠ ΫϩεϓϥοτϑΥʔϜ։ൃٕज़ͩͱࢥ͏ w ͓͔͔ۚΒͳ͍ɺ࣮͋ΔɺΤϯδχΞ֬อ༰қ w ग़ͯ͘ΔίʔυͷΩϞ͞ʹର͢Δ༰͕͞ඞཁɻ