-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom Android Manifest change Retrofit version to 2nd Version add auto importing class to some files.
- Loading branch information
Showing
4 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
30
ActivityClean Architecture/root/src/AndroidManifest.xml.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
5 changes: 3 additions & 2 deletions
5
ActivityClean Architecture/root/src/app_package/SimpleRepositoryImpl.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters