Merge pull request #124 from bclermont/120-android-doc

Add android specific doc
This commit is contained in:
therecipe 2016-11-22 15:37:26 +01:00 committed by GitHub
commit b2b89cd1d2

44
docs/android.md Normal file
View file

@ -0,0 +1,44 @@
# Android
## Release and Branding
An Android application should be structured like the following:
```
project_name
├── android
│ ├── AndroidManifest.xml
│ ├── alias.txt
│ ├── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ └── gradle-wrapper.properties
│ ├── icon.png
│ ├── password.txt
│ ├── project_name.keystore
│ └── res
│ ├── drawable-hdpi
│ │ └── icon.png
│ ├── drawable-ldpi
│ │ └── icon.png
│ └── drawable-mdpi
│ └── icon.png
├── deploy
│ └── android_minimal
│ └── build
├── project.go
└── qml
└── project.qml
```
The content of the `android` folder will be copied into
`deploy/android_minimal/build` before using `gradle` to bundle the binary inside
a `.apk`.
You can use the `AndroidManifest.xml` found inside
`deploy/android_minimal/build` as a template to build upon. (Set package
identifier, icon, permissions, ...)
For example: `android:icon="@drawable/icon"` attribute can be added to
`application` in `AndroidManifest.xml` to use the `icon.png`.