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
300
Androidオープンソース ライブラリの作り方 + ちょっと運用
takahirom
November 27, 2015
Tweet
Share
More Decks by takahirom
See All by takahirom
Google の LLM ライブラリ を Android アプリで 使うには?
takahirom
0
1.3k
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
860
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
Featured
See All Featured
Embracing the Ebb and Flow
colly
84
4.5k
RailsConf 2023
tenderlove
29
960
No one is an island. Learnings from fostering a developers community.
thoeni
19
3.1k
Making Projects Easy
brettharned
116
6k
How to train your dragon (web standard)
notwaldorf
88
5.8k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
VelocityConf: Rendering Performance Case Studies
addyosmani
327
24k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Visualization
eitanlees
146
15k
The World Runs on Bad Software
bkeepers
PRO
66
11k
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ͰεΫϦʔϯγϣοτऔ Β͍ͤͯ·͢
ΦʔϓϯιʔεͰ ָ͘͠։ൃΛʂʂʂ