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
November 27, 2015
1
310
Androidオープンソース ライブラリの作り方 + ちょっと運用
takahirom
November 27, 2015
Tweet
Share
More Decks by takahirom
See All by takahirom
Google の LLM ライブラリ を Android アプリで 使うには?
takahirom
0
1.4k
Robolectric Native Graphics and Roborazzi
takahirom
1
1.7k
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
890
What’s new in Android Jetpack and Tools
takahirom
0
370
ABEMAのKotlin Multiplatform
takahirom
4
5.6k
What's new in Kotlin Coroutines on Android
takahirom
2
2.6k
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Visualization
eitanlees
146
15k
Code Reviewing Like a Champion
maltzj
521
39k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Done Done
chrislema
182
16k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Fontdeck: Realign not Redesign
paulrobertlloyd
83
5.4k
Building Applications with DynamoDB
mza
93
6.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Transcript
AndroidΦʔϓϯιʔε ϥΠϒϥϦͷ࡞Γํ + ͪΐͬͱӡ༻ takahirom
ࣗʹ͍ͭͯ UBLBIJSPN !OFX@SVOOBCMF ࣄझຯ"OESPJE ίϛοτ͍ͬͯ·͢
ࣗͰϥΠϒϥϦ ࡞ΕͨΒخ͍ͣ͠
ϥΠϒϥϦ ϓϩδΣΫτͷ࡞Γํ
Android StudioͰ ී௨ʹΞϓϦͷϓϩδΣΫτΛ࡞Γ·͢
/FX.PEVMFͰ"OESPJE-JCSBSZΛࢦఆ
͜͜Ͱ໊લΛzMJCSBSZzΈ͍ͨͳ ҆қͳ໊લΛ͚ͭͯ͠·͍͕ͪͰ͕͢ɺɺ
test-library-nameͱ͍͏Α͏ͳ ϋΠϑϯ۠Γͷܗʹ ※ޙड़
ϞδϡʔϧΛࢀর
MJCSBSZϓϩδΣΫτͷத͕ BQQϓϩδΣΫτ͔Βී௨ʹࢀরͰ͖ΔͷͰ BQQϓϩδΣΫτΛαϯϓϧͱͯ͠ ։ൃ͠·͢ ผϓϩδΣΫτʹ͢Δํ๏͋Γ·͕͢ɺɺ ։ൃ
Φʔϓϯιʔεʹ͢Δ "QBDIFͳͲͷϥΠηϯεදهΛͯ͠ (JUIVCʹQVTI͠·͢
Android StudioͰϥΠηϯεͷઃఆ (IntelliJܥͷΤσΟλͰ͑Δͣ) ίʔυΛ͍͍͍ͪͪ͡Δͷ໘ͳͷͰ "OESPJE4UVEJPͰͷઃఆΛհ͠·͢
Android StudioͰϥΠηϯεͷઃఆ $PQZSJHIU͔Β࡞Δ %FGBVMUʹઃఆ 6QEBUFQSPKFDU దԠൣғΛઃఆ
Φʔϓϯιʔεʹ͢Δ $SFBUFECZUBLBIJSPNPO σϑΥϧτͷ'JMF)FBEFSΛୀ࣏͢Δ w %FGBVMU'JMF)FBEFSΛۭʹ͢Δ
w 3VO*OTQFDUJPO#Z/BNFͰ w %FGBVMU'JMF5FNQMBUF6TBHFΛબ w ౾ిٿϚʔΫΛԡ͢
ϥΠϒϥϦͷެ։ • jCenterͰެ։͢Δํ๏(ΦεεϝͰ͢) • MavenCentralͰެ։͢Δํ๏(େมΒ͍͠) • GithubͰެ։͢Δํ๏ • jitpack.io
jCenterʹొ bintrayʹొ https://bintray.com/bintray/jcenter ->sign up
jCenterʹొ w ϩάΠϯͯ͠ɺQSPpMFͷϖʔδʹߦ͘&EJU"1*,FZ Ͱ"1*,FZΛΒ͏ w HSBEMFCJOUSBZQMVHJOΛར༻͢Δ w IUUQTHJUIVCDPNCJOUSBZCJOUSBZFYBNQMFT USFFNBTUFSHSBEMFBBSFYBNQMF w
ΛࢀߟʹϥΠϒϥϦͷϞδϡʔϧʹ(SBEMFͷεΫϦ ϓτΛ࣮
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’ } Ͱࢦఆͯ͋͛͠ΕେৎͰ͢
͜ͷํ๏ͰGradleͷϓϩδΣΫτ໊͕ ϥΠϒϥϦͷ໊લʹͳΔΑ͏ͳͷͰɺҙ͠·͠ΐ͏ (libraryͰͳ͘ɺtest-library-nameͷΑ͏ͳ໊લʹ ͨ͠ͷͦͷͨΊ) ᠘ϙΠϯτ
ΘΕͳ͍ͱ൵͍͠
gifΞχϝΛషΔ → ͜Μͳײ͡ͷΛషͬͯ ͓͘ͱԠ͕ྑ͔ͬͨͰ͢
ϥΠϒϥϦΞοϓσʔτલʹ ҆৺͍ͨ͠
CIΛಋೖ͢Δ CircleCIͳͲΛͬͯςετͤ͞·͠ΐ͏ʂ ΦʔϓϯιʔεϥΠϒϥϦͳΒແྉͰ͑ͯ ศརͰ͢ɻ
UIܥϥΠϒϥϦͳΒ ͍ΖΜͳΦϓγϣϯΛ͏αϯϓϧΞϓϦΛ ࡞Δ →Espresso+SpoonͰεΫϦʔϯγϣοτऔ Β͍ͤͯ·͢
ΦʔϓϯιʔεͰ ָ͘͠։ൃΛʂʂʂ