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
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
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
820
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
DroidKaigiアプリの Kotlin Multiplatform
takahirom
2
2.5k
Other Decks in Programming
See All in Programming
僕がつくった48個のWebサービス達
yusukebe
20
17k
Tauriでネイティブアプリを作りたい
tsucchinoko
0
350
推し活の ハイトラフィックに立ち向かう Railsとアーキテクチャ - Kaigi on Rails 2024
falcon8823
6
2.7k
EventSourcingの理想と現実
wenas
6
2.2k
Dev ContainersとGitHub Codespacesの素敵な関係
ymd65536
1
140
カラム追加で増えるActiveRecordのメモリサイズ イメージできますか?
asayamakk
4
1.9k
現場で役立つモデリング 超入門
masuda220
PRO
15
3.1k
PLoP 2024: The evolution of the microservice architecture pattern language
cer
PRO
0
2.4k
カスタムしながら理解するGraphQL Connection
yanagii
1
1.5k
Ethereum_.pdf
nekomatu
0
370
CSC509 Lecture 09
javiergs
PRO
0
140
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
190
Featured
See All Featured
Making Projects Easy
brettharned
115
5.9k
It's Worth the Effort
3n
183
27k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Ruby is Unlike a Banana
tanoku
96
11k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Adopting Sorbet at Scale
ufuk
73
9.1k
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ίϛοτ