Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
Add custom Android Manifest
change Retrofit version to 2nd Version
add auto importing class to some files.
  • Loading branch information
alhazmy13 committed Sep 5, 2016
2 parents ac628d3 + c0981ad commit 20aefd8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ActivityClean Architecture/recipe.xml.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<recipe>
<#include "../common/recipe_manifest.xml.ftl" />
<#include "root/recipe_manifest.xml.ftl" />

<#if generateLayout>
<#include "../common/recipe_simple.xml.ftl" />
Expand Down
8 changes: 8 additions & 0 deletions ActivityClean Architecture/root/recipe_manifest.xml.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<recipe folder="root://activities/common">

<merge from="root/src/AndroidManifest.xml.ftl"
to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />
<merge from="../../common/root/res/values/manifest_strings.xml.ftl"
to="${escapeXmlAttribute(resOut)}/values/strings.xml" />

</recipe>
30 changes: 30 additions & 0 deletions ActivityClean Architecture/root/src/AndroidManifest.xml.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" >

<application>
<activity android:name="${relativePackage}.presentation.${activityClass}"
<#if generateActivityTitle!true>
<#if isNewProject>
android:label="@string/app_name"
<#else>
android:label="@string/title_${activityToLayout(activityClass)}"
</#if>
</#if>
<#if hasNoActionBar>
android:theme="@style/${themeNameNoActionBar}"
</#if>
<#if buildApi gte 16 && parentActivityClass != "">
android:parentActivityName="${parentActivityClass}"
</#if>>
<#if parentActivityClass != "">
<meta-data android:name="android.support.PARENT_ACTIVITY"
android:value="${parentActivityClass}" />
</#if>
<#if isLauncher && !(isLibraryProject!false)>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</#if>
</activity>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package ${packageName}.model;


import retrofit.Response;
import retrofit2.Response;
import rx.Observable;
import rx.functions.Func1;

import ${packageName}.data.${repositoryInterface};
import ${packageName}.data.${serviceClass};

public class ${repositoryImplClass} implements ${repositoryInterface} {

Expand Down

0 comments on commit 20aefd8

Please sign in to comment.