You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting a new Android project means writing a lot of boilerplate code, setting up your dependencies, setting up networking, dependency injection and a myriad of other small things before you can even get started on the actual app. In the spirit of DRY, we have created an automated process at moldedbits to jumpstart Android projects and get started quickly. And in the spirit of open source, we are putting this out in the public domain.
9
+
Do you remember the last time you setup an Android project? How long did it take you after creating a new android project from Android Studio to customize and scaffold it before you could write the first business logic? Did you remember to setup the
10
10
11
-
In this post, we will demo setting up an application with the dependencies, networking and dependency injection setup and the login implemented with [Argus](https://github.com/moldedbits/argus-android).
11
+
* dependencies correctly,
12
+
* networking,
13
+
* dependency injection,
14
+
* base classes,
15
+
* build types,
16
+
* version number auto increment and
17
+
* a million other small things?
12
18
13
-
#### Setting up
19
+
And then to do it for every new project you start, that is hours and hours of wasted effort.
14
20
15
-
We have a python script to help with the initial setup. You can clone this [repo](https://github.com/moldedbits/JumpstartScript) on your machine and navigate to the folder on a terminal.
In the spirit of DRY, we have created an automated process at moldedbits to jumpstart Android projects and get started quickly. And in the spirit of open source, we are putting this out in the public domain.
26
+
27
+
Enough talk, lets code. We will demonstrate setting up an application with the dependencies, networking and dependency injection setup and the login implemented with [Argus](https://github.com/moldedbits/argus-android), all within 5 minutes.
Next, to setup the project, all you need to do is run
31
+
#### Step 1 - Setting up the base project
32
+
33
+
*Time Required: 3 minutes*
34
+
35
+
We have a python script to help with the initial setup. You can clone this [repo](https://github.com/moldedbits/JumpstartScript) on your machine and navigate to the folder on a terminal.
This will clone the repository [android-jumpstart](https://github.com/moldedbits/android-jumpstart) locally and then ask you a few questions to customize it.
42
+
43
+
This will clone the repository [android-jumpstart](https://github.com/moldedbits/android-jumpstart) locally and then ask you two to customize it.
23
44
24
45
```
25
46
...
@@ -30,18 +51,11 @@ Enter new app package: com.moldedbits.jump
30
51
```
31
52
This will create a project for you in the folder _JumpDemo_ that is all set to be imported into Android Studio.
This is our base project all setup. Some of the features already implemented by this are,
58
+
Some of the features already implemented by this are,
45
59
46
60
* Dependency injection with Dagger 2
47
61
* Networking with Retrofit
@@ -50,54 +64,26 @@ This is our base project all setup. Some of the features already implemented by
50
64
51
65
A detailed and updated list of the features is available on the [project page](https://github.com/moldedbits/android-jumpstart).
52
66
53
-
#### Adding login
67
+
#### Step 2 - Adding login (Optional)
54
68
55
-
Most apps require a login flow with email, phone and social logins. To further automate this, we have created another library to make our lives easier, [Argus](https://github.com/moldedbits/argus-android). Including this is really simple. The first thing we have to do is to include Argus as a dependency in our app level build.gradle.
69
+
*Time Required: 2 minutes*
56
70
57
-
```
58
-
compile 'com.moldedbits.argus:argus:0.2.0'
59
-
```
60
-
Next, we modify the class BaseApplication to configure Argus.
71
+
Most apps require a login flow with email, phone and social logins. To further automate this, we have created another library to make our lives easier, [Argus](https://github.com/moldedbits/argus-android). Including this is really simple. Follow the steps [here][argus-post] and you will have your login screen in less than two minutes.
And that is all. With this, we have setup an app with all the dependencies and scaffolding setup to get the developer started straight on the business logic of the app, and a basic login framework.
And that is all. With this, we have setup an app with all the dependencies and scaffolding setup to get the developer started straight on the business logic of the app, and a basic login framework.
81
+
The jumpstart is, by design, very opinionated about how android apps should be written. You can pick the things you like and change / delete the things you do differently.
We will continue working on the jumpstart project to keep it updated, so you can expect to see some changes in the future. As always, if you find anything that can be improved, we welcome you to create a github issue or better to create a pull request.
0 commit comments