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
icyleaf
September 29, 2016
Technology
0
56
Android 组件实践
搭建、开发、发布 Android 组件到私有仓库全记录
icyleaf
September 29, 2016
Tweet
Share
More Decks by icyleaf
See All by icyleaf
我想学 Ruby 系列课程之开篇
icyleaf
0
120
论 Mobile App (iOS/Android)自动化构建是如何炼成的
icyleaf
0
190
使用 Kohana 轻便快速开发
icyleaf
0
110
贡嘎转山之驴行的意义
icyleaf
0
140
Install Snow Leopard on PC (Hashintosh)
icyleaf
0
150
Git 入门实战
icyleaf
8
790
Other Decks in Technology
See All in Technology
ワールドカフェ再び、そしてロール・ツール群の開発 / World Café Again, and the Development of a Suite of Roles and Tools
ks91
PRO
0
110
経済メディア編集部の実務に小さく刺さるAI / small-ai-with-editorial
nkzn
2
530
Cline&CursorによるAIコーディング徹底活用―Live Vibe Coding付き
pharma_x_tech
2
480
Kent Beckの思想と学びの道筋 / 20250517 Ryutaro Yoshiba & Hiromitsu Akiba
shift_evolve
1
120
ホワイトボックス& SONiC アーキテクチャ(全体像) - SONiC Workshop Japan 2025
ebiken
PRO
1
440
転職したらMCPサーバーだった件
nwiizo
13
10k
分解し、導き、託す ログラスにおける“技術でリードする” 実践の記録
hryushm
1
630
20250514 1Passwordを使い倒す道場 vol.1
east_takumi
0
160
インフラからSREへ
mirakui
20
7.9k
The PyArrow revolution in Pandas
reuven
0
130
人間性を捧げる生成AI時代の技術選定
yo4raw
2
1.2k
インラインRBSコメントに鯛pe checkersもニッコリ
sansantech
PRO
2
220
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
183
22k
The Pragmatic Product Professional
lauravandoore
33
6.6k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
A better future with KSS
kneath
239
17k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
How to Ace a Technical Interview
jacobian
276
23k
Raft: Consensus for Rubyists
vanstee
137
6.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.7k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
227
22k
The Cost Of JavaScript in 2023
addyosmani
49
7.9k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Into the Great Unknown - MozCon
thekraken
38
1.8k
Transcript
Android ᕟկਫ᪢ ൫ୌ̵ݎ̵ݎᐺํՙପقᦕ୯
ىԭ౯ ሴ冁 http://github.com/icyleaf
• ԅՋԍᥝᕟկ۸ • ٵ॓ሾह • ݎᕟկጱᳯ᷌ • ই֜۱ᕟկ • ړݎکᐺํՙପ
• ᶱፓفᐺํᕟկ
ԅՋԍᥝᕟկ۸
ԅՋԍᥝᕟկ۸
• ी୩॔አګ • ٺᶱፓጱᘠݳ • ฃԭړՁ • ṛྯӻՈጱݎපሲᩒრᳯ᷌
ᕟ件化 吧Ḿ年
ٵ॓ሾह Android Studio ੪ड़ ԧ҅ڦঘᏥ౯፡ԡ
ࣗӞ ࣗᇂޫѺѺAndroid Studio ݝඪ೮ڠୌᶱፓѺ ෫ѺဩѺፗѺളѺڠѺୌѺᕟѺկѺ
ྋᏟڠୌᕟկጱ۠ 1. ڠୌӞӻֺᶱፓҁྲই XXXXSample҂ 2. ٚྌचᏐӤڠୌӞӻ Android Library 3. දݷֺᶱፓጱ
app ፓ୯ԅ sample
֢ۖړᥴ
STEP 1 ڠୌֺᶱፓ
STEP 2 ڠୌ Android Library
STEP 3 දݷ app
ࣗԫ ᕟկ឴ݐ᧣አ App ጱמ௳ݢᚆฎӧྋᏟጱѺ
Ԉӻ່ৼ • ྲইֵአ BuildConfig ឴ݐ App ጱ packagename/versionName/versionCode
BuildConfig ጱওአ • Android Stuido ᇿํጱᔄ • ݢզ build.gradle ឴ݐचמ௳
• ԞݢզᛔਧԎᯈᗝמ௳
None
None
۱ԏڹ౯మض᧔᧔ړݎ
ړݎ • لՙପ • Maven Central • jCenter • ᐺํՙପ
• Nexus • Artifactory
maven vs jcenter • jcenter ฎӞӻ mavenCentral ጱ᩻ᵞ҅jcenter ᬮ۱ތԧٌ՜ maven
۱ • jcenter ٍํๅঅጱ cdn҅ἕᦊඪ೮ https҅ᬯӻԭᨕྈํ य़ޕێ • bintrayҁjcenter ጱ๐ۓ׀ࠟ҂ᤒᐏ jcenter ٍํๅঅጱᚆ • ํහഝᤒก bintray jcenter ܛአๅጱࣈᖨਂᑮᳵ • ๅঅጱԻኴᶎ҅ݢզ jcenter ݻ mavenCentral ݶྍ۱ ݇ᘍ಼ Android Studio ԏࢥғMaven ՙପֵአӨᐺํՙପ൫ୌ gradle vs maven
۱ ቘᥴړݎՙପᵱᥝጱᕟ౮᮱ړғ • .pom ᕟկጱൈᬿਧԎ xml կ • .aar ۱ތᩒრጱ
jar կ҅አԭ Android • source.jar ᕟկጱრᎱ • javadoc.jar ᕟկጱ API
ࣗӣ ԅՋԍ౯۱ጱᕟկ෫ဩֵአҘ ׁᩢ౯ࣁᕟկጱ build.gradle ૪ᕪႲےԧࠡѺ
Maven चᕟ౮ • artifact • group • version • dependency
None
None
ݎᐺํՙପ • ๐ۓՙପአ Artifactory • ૡᑕᕟկᵱᥝෛी gradle ൊկ • maven-plugins
ҁٖᗝ҂ • com.jfrog.artifactory ҁᵱႲے BuildScript ׁᩢ҂
None
None
None
None
ᶱፓفᐺํᕟկ
• ໑ፓ୯ build.gradle Ⴒے maven ՙପ • ؟ྋଉӞفׁᩢᕟկ
ࣗࢥ ֦݈ࣗᇂѺѺ໑෫ဩӥׁᩢѺ AS ྯེᅩڋ Sync Now ᮷ಸᲙѺѺѺѺѺ
ᵙ᭲ฎ VPN ᳯ᷌Ҙ ༄ັing........ഭᴻѺ ᵙ᭲ฎࣈᗑᕶᳯ᷌Ҙ ༄ັing........ഭᴻѺ ᵙ᭲ฎ 227 ᴠᅉाᳯ᷌Ҙ ༄ັing........ഭᴻѺ
ᵙ᭲ฎ artifactory ᛔᴴᳯ᷌Ҙ ༄ັing........ഭᴻѺ ᵙ᭲ฎ.....ঌᢓѺѺ
None
None
Q&A