This is intended to be a base project to be used as a base when starting a new project.
- JDK 1.8
- Android SDK
- Android O (API 26)
- Latest Android SDK Tools and build tools.
First clone the boilerplate repository. Next, if you want to copy the boilerplate into your own repository follow Clone into your own repository. If you just want to get started with customising things for your own project skip onto Make it your own.
Follow these steps if you have a repository with a branch you'd like to copy the boilerplate project into:
$ cd <path to boilerplate>
$ git remote add newrepo <path to newrepo>
$ git checkout --orphan copy
$ git commit -m "Copying boilerplate"
$ git push newrepo copy:<branch on new repo>
This will copy the boilerplate project without history to your own branch in your repository.
Personalise the boilerplate for your own project:
-
Rename
com.fjoglar.android.boilerplate
packages to your own domain's stucture. E.gcom.mydomain.myapp
. See StackOverflow for steps to easily accomplish this in Android Studio. -
Open
app/build.gradle
and change the following to match your new package names:applicationId "com.mydomain.myapp"
testInstrumentationRunner "com.mydomain.myapp.application.ApplicationTestRunner"
Thanks to the devs involved with these repos!
Copyright 2017 Felipe Joglar Santos
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.