$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Androidオープンソースライブラリの作り方
Search
takahirom
February 19, 2015
Programming
4
1.1k
Androidオープンソースライブラリの作り方
takahirom
February 19, 2015
Tweet
Share
More Decks by takahirom
See All by takahirom
Google の LLM ライブラリ を Android アプリで 使うには?
takahirom
0
610
Robolectric Native Graphics and Roborazzi
takahirom
1
1.6k
Androidアプリで安定して動作させ継続的に開発するために設計の原則を利用して開発した話
takahirom
2
1.3k
Android Tools & Performance
takahirom
1
1.1k
Jetpack Compose State Practices
takahirom
1
1.3k
Inside Jetpack Compose
takahirom
1
840
What’s new in Android Jetpack and Tools
takahirom
0
360
ABEMAのKotlin Multiplatform
takahirom
4
5.5k
What's new in Kotlin Coroutines on Android
takahirom
2
2.6k
Other Decks in Programming
See All in Programming
距離関数を極める! / SESSIONS 2024
gam0022
0
360
N.E.X.T LEVEL
pluu
2
240
romajip: 日本の住所CSVデータを活用した英語住所変換ライブラリを作った話
sangunkang
0
2.3k
Functional Event Sourcing using Sekiban
tomohisa
0
130
Vue.js_好きに捧ぐ Nuxt Hub で簡単に始めるCloudflare
xiombatsg
1
110
似たもの同士のPerlとPHP
uzulla
1
110
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
730
カンファレンスの「アレ」Webでなんとかしませんか? / Conference “thing” Why don't you do something about it on the Web?
dero1to
1
150
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
8k
Reckoner における Datadog Browser Test の活用事例 / Datadog Browser Test at Reckoner
nomadblacky
0
180
14 Years of iOS: Lessons and Key Points
seyfoyun
0
390
TypeScript でバックもやるって実際どう? 実運用で困ったこと3選
yuichiro_serita
17
7.4k
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
It's Worth the Effort
3n
183
27k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Optimizing for Happiness
mojombo
376
70k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
The Language of Interfaces
destraynor
154
24k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
Designing the Hi-DPI Web
ddemaree
280
34k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Transcript
AndroidΦʔϓϯιʔε ϥΠϒϥϦͷ࡞Γํ
ࣗʹ͍ͭͯ UBLBIJSPN !OFX@SVOOBCMF ! ࣄझຯ"OESPJE
AndroidΞϓϦͷϥΠϒϥϦ ButterKnifeͱ͔ Volleyͱ͔ Daggerͱ͔ RxAndroidͱ͔ ͍Ζ͍Ζ͋Γ·͢ΑͶʁ
ࣗͰ࡞ΕͨΒخ͍ͣ͠
ϥΠϒϥϦ ϓϩδΣΫτͷ࡞Γํ
Android StudioͰ ී௨ʹΞϓϦͷϓϩδΣΫτΛ࡞Δ
/FX.PEVMFͰ"OESPJE-JCSBSZΛࢦఆ
͜͜Ͱ໊લΛzMJCSBSZzΈ͍ͨͳ ҆қͳ໊લΛ͚ͭͯ͠·͍͕ͪͰ͕͢ɺɺ
test-library-nameͱ͍͏Α͏ͳ ϋΠϑϯ۠Γͷܗʹ
ΓํʹΑΓ·͕͢ ͜ͷ࣌ͷσΟϨΫτϦ໊Ͱ ϥΠϒϥϦͷ໊લ͕มΘΓ·͢ ! ! (ϓϩδΣΫτ໊͕ϥΠϒϥϦ໊ʹͳΔͨΊ) MJCSBSZʹͳͬͯ͠·ͬͨCVJMEHSBEMF IUUQTHJUIVCDPNUBLBIJSPN8FBS-JTUFOFS4FSWJDF#SPBEDBTUFSCMPC CEBCEDBFBFCFEECEGMJCSBSZCVJMEHSBEMF
ϞδϡʔϧΛࢀর
MJCSBSZϓϩδΣΫτͷத͕ BQQϓϩδΣΫτ͔Βී௨ʹࢀরͰ͖ΔͷͰ ! BQQϓϩδΣΫτΛαϯϓϧͱͯ͠ ։ൃ͠·͢ ։ൃ
Φʔϓϯιʔεʹ͢Δ "QBDIFͳͲͷϥΠηϯεදهΛͯ͠ (JUIVCʹQVTI͠·͢
ϥΠϒϥϦͷެ։ • GithubͰެ։͢Δํ๏ • jCenterͰެ։͢Δํ๏(ΦεεϝͰ͢) • MavenCentralͰެ։͢Δํ๏(େมΒ͍͠) • jitpack.io(jCenterʹΞοϓ͞Ε͍ͯͳ͍ϥΠϒϥ ϦΛ͑ΔΒ͍͠)
GithubͰެ։͢Δ(ެ։ଆ) EFGSFQPOFX'JMF SPPU%JS SFQPTJUPSZ BQQMZQMVHJONBWFO VQMPBE"SDIJWFT\ SFQPTJUPSJFT\
NBWFO%FQMPZFS\ SFQPTJUPSZVSMpMF\SFQPBCTPMVUF1BUI^ QPNWFSTJPO QPNHSPVQ*EBUXBEB QPNBSUJGBDU*EBOESPJEEJBMPHGSBHNFOUT ^ ^ ^ IUUQXBEBCMPHTQPUDPNEJTUSJCVUFBOESPJEMJCSBSZBTNBWFOSFQPTJUPSZJOHJUIVCIUNMΑΓ
GithubͰެ։͢Δ (ར༻͢Δଆ) SFQPTJUPSJFT\ NBWFO\VSMIUUQSBXHJUIVCDPNXBEB"OESPJE %JBMPH'SBHNFOUTNBTUFSSFQPTJUPSZ^ ^ EFQFOEFODJFT\ DPNQJMFBUXBEBBOESPJEEJBMPHGSBHNFOUT ^
GithubͰެ։͢Δ ϝϦοτ खܰ σϝϦοτ ͏ଆͰೋߦॻ͘ඞཁ͋Γ ͏ଆͰϏϧυ͕͘ͳΔ(5ඵఔ͘ͳΔΑ͏Ͱ͢)
jCenterʹొ bintrayʹొ https://bintray.com/bintray/jcenter ->sign up
jCenterʹొ w ϩάΠϯͯ͠ɺQSPpMFͷϖʔδʹߦ͘&EJU"1*,FZ ͰݟΒΕΔ w IUUQTHJUIVCDPNCJOUSBZCJOUSBZFYBNQMFT USFFNBTUFSHSBEMFBBSFYBNQMF w ΛࢀߟʹϥΠϒϥϦͷϞδϡʔϧʹCVJMEHSBEMFΛ࣮
jCenterʹొ (SBEMFεΫϦϓτͰ HSPVQDPNCJOUSBZFYBNQMF WFSTJPO ͳͲΛࢦఆ͠·͢
jCenterʹొ bintrayʹΞοϓϩʔυ ./gradlew bintrayUpload
jCenterʹొ Ξοϓϩʔυ͢ΔͱbintrayʹͦͷϥΠϒϥϦͷ ϖʔδ͕Ͱ͖·͢ Link to jcenterͱ͍͏ϦϯΫ͕͋ΔͷͰΫϦοΫ ςΩετϘοΫε͕͋ΔͷͰ͕͢Կೖྗͤͣʹ ͦͷ··ਃ͢ΕOKʂ
jCenterʹొ(͏ଆ) dependencies{ compile ‘com.bintray.example:test-library- name:1.0.0’ } Ͱࢦఆͯ͋͛͠ΕେৎͰ͢
jCenterʹΞοϓϩʔυ͢Δલʹ ϩʔΧϧʹpublishͯ֬͠ೝ (ϥΠϒϥϦଆ) apply plugin: 'maven-publish' android.libraryVariants publishing { publications
{ maven(MavenPublication) { artifact bundleRelease } } } ͜ΕΛϥΠϒϥϦϞδϡʔϧͷͷbuild.gradleʹՃͯ͠ ./gradlew publishToMavenLocal ϩʔΧϧ্ʹ͋ΔϦϙδτϦʹpublish
jCenterʹΞοϓϩʔυ͢Δલʹ ϩʔΧϧʹpublishͯ֬͠ೝ (͏ଆ) repositories { mavenLocal() } dependencies { compile
‘com.bintray.example:test-library-name:1.0.0’ }
ΘΕͳ͍ͱ൵͍͠
࡞ͬͨΒڞ༗͢Δ Google+ͷAndroid projects on Githubʹ ߘ͢ΔͱAndroid ArsenalʹՃ͞ΕΔͷ Ͱ͍͍ײ͡ IUUQTQMVTHPPHMFDPNVDPNNVOJUJFT
ΦʔϓϯιʔεͰ ָ͘͠։ൃΛʂʂʂ
࡞͍ͬͯΔͷ ϚςϦΞϧσβΠϯΆ͍ ΥονϑΣΠεΞϓϦ(։ൃத) WearLocationWatchFace ! Android Wear͚ͷϥΠϒϥϦ WearSharedPreferences WearHttp 11ίϛοτ