Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Added new android library template #487

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added app/src/main/assets/templates/10.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,16 @@ private Void createTemplates() {
.setName(getApplication().getApplicationContext(), R.string.template_no_activity)
.setDescription(
getApplication().getApplicationContext(), R.string.template_no_activity_description)
.setImageId(R.drawable.template_no_activity);
.setImageId(R.drawable.template_no_activity),
androidLibrary =
new ProjectTemplate()
.setId(10)
.setSupportJava(true)
.setSupportKotlin(true)
.setName(getApplication().getApplicationContext(), R.string.template_android_library)
.setDescription(
getApplication().getApplicationContext(), R.string.template_android_library_description)
.setImageId(R.drawable.template_android_library);

mTemplates.add(noActivity);
mTemplates.add(empty);
Expand All @@ -138,6 +147,7 @@ private Void createTemplates() {
mTemplates.add(cppWizard);
mTemplates.add(compose);
mTemplates.add(libgdx);
mTemplates.add(androidLibrary);

mProjectTemplatesList.postValue(mTemplates);
mLoadingState.postValue(false);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
<string name="template_cpp_description">Creates a new project with an Empty Activity configured to use JNI</string>
<string name="template_no_activity">No Activity</string>
<string name="template_no_activity_description">Creates a new project without activity</string>
<string name="template_android_library">Android Library Template</string>
<string name="template_android_library_description">Creates a new android library project</string>

<!-- Files -->
<string name="save">Save</string>
Expand Down Expand Up @@ -359,4 +361,4 @@
<string name="msg_swipe_for_output">Swipe up for @@build output@@.</string>
<string name="idepref_editor_useSoftTabs_title">Use soft tab</string>
<string name="idepref_editor_useSoftTabs_summary">Choose whether to use spaces instead of tab character (\\t).</string>
</resources>
</resources>