1. Main Function
- Compile
Mobile Taobao Android
,Mobile Youku Android
,Mobile Cainiao Android
quickly. Less than a minute - Build dynamic deploy patches with one single click, And install these patches to you android phone
- Create a
Atlas project
orAtlas Bundle
2. Installation
2.1 Install from JetBrains Plugin repositories
- Open
Preferences -> Plugins -> Browse Repositories
- Input
AtlasBuildTool
- Install And Restart
Idea
2.2 Install Local
- Download Plugin
- Open
Preferences -> Plugins -> Browse Repositories
- Install Plugin from disk...
- Select downloaded plugin
- restart
Idea
3. Usage
3.1 Create Atlas Project or Bundle
Create Atlas Project
File -> New -> Atlas Projects... -> Project
.It looks like creating a Normal
Android Project
in first few steps.Then you will see the final step like this.
undefinedAtlas Gradle Plugin : A Gradle Tool to build atlas project
- Atlas Core : Atlas Core runtime library
- Atlas Update : A Library make
Atlas
project can update through patches. (Optional)
Go to Here to get the detail infomation of these three
Lib
Then Finish
- You will get a Android Project with all Atlas depdencies after Finish, And the
app
is themain dex
Create Atlas Bundle
You may need to add an Atlas bundle
to your Atlas project
after it is created.
So you can make a integrated experience of Atlas
.
Create a bundle like this :
File -> New -> Atlas Projects... -> Bundle
.It looks like creating a Normal
Android Bundle
in first few steps.Then you will see the final step like this.
Note that this step will be displayed only if this bundle is a
Android library
And First of all there is must a Main dex module in current project
- Main Dex : The Main Dex of this project.
- Bundle Property :
- autoStart : If this is selected, this bundle will be auto started after atlas turn alive
- outOfApk : It is means this bundle will be marked as a remote bundle. It is against with autoStart
- dataBinding : mark this bundle as a databinding bundle
3.2 Add Atlas to a exist project
Tools -> Atlas -> Configure Atlas in Project
And You will see something like this
Click Ok or you can select these lib's version before.
Atlas
's properties will be added into this project immediately.
3.3 Build Atlas dexPatches And install
First of all you should have some knowledge about dexPatch
Add a Deploy Runconfiguration
Configure
①. MainDexModule: The MainDex Of this project
②. Deploy: Dynamic type, only DexPatch for now
③. apVersion : ap's version
④. versionName : dex patch's versionCode, The Main app's version will be thisversionCode
after it is updated successfully
⑤. Increase versionName automatically : it is means whether to increase the versionCode after the build action is done
- The click
Run
3.4 Build Atlas dexPatches And install
This Function is only for Alibaba developers for the moment.
Make us know if you want to use this function
Add a Run Runconfiguration
Configure
- Ap Address : Ap's Download.
- Selected App : The fast build app.
Mobile Taobao Android
,Mobile Taobao Youku
,Mobile Taobao Cainiao
are supported. Make us know if you want to use this function - Build Type : Apk or Dynamic
- Build Modules : The Modules can be build to
selected app
. one module should be selected at least. - Source | Coordinate : Two ways of building project. It is like
compile project
Andcompile coordinate
in gradle. - Selected : Only the selected module will be build to the final artifact
Apk or Patches
- Transitive : Gradle's transitive property, Detail
- Custom Modules : You Can add another coordinate dependency here. this lib will be build into the final artifact
Apk or Patches
Then click run to enjoy it