summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Lenny <jlenny@gitlab.com>2019-03-07 14:48:03 +0100
committerJason Lenny <jlenny@gitlab.com>2019-03-07 20:02:40 +0100
commite9aef30b50336fae67b2bd0a6425956a450b84c1 (patch)
tree0ccb50abb76a00d1962fad5262b1e6833a38c6c6
parentdd930faea663ec387c09141fcad943bb5daf503b (diff)
downloadgitlab-ce-e9aef30b50336fae67b2bd0a6425956a450b84c1.tar.gz
Add Android template
-rw-r--r--app/assets/javascripts/projects/project_new.js4
-rw-r--r--changelogs/unreleased/58649-project-template-for-android.yml5
-rw-r--r--lib/gitlab/project_template.rb1
-rw-r--r--locale/gitlab.pot3
-rw-r--r--spec/lib/gitlab/project_template_spec.rb1
-rw-r--r--vendor/project_templates/android.tar.gzbin0 -> 132152 bytes
6 files changed, 14 insertions, 0 deletions
diff --git a/app/assets/javascripts/projects/project_new.js b/app/assets/javascripts/projects/project_new.js
index 796ecbccde7..784eec1ea55 100644
--- a/app/assets/javascripts/projects/project_new.js
+++ b/app/assets/javascripts/projects/project_new.js
@@ -133,6 +133,10 @@ const bindEvents = () => {
text: '.NET Core',
icon: '.template-option .icon-dotnet',
},
+ android: {
+ text: 'Android',
+ icon: '.template-option svg.icon-android',
+ },
gomicro: {
text: 'Go Micro',
icon: '.template-option .icon-gomicro',
diff --git a/changelogs/unreleased/58649-project-template-for-android.yml b/changelogs/unreleased/58649-project-template-for-android.yml
new file mode 100644
index 00000000000..130992272ec
--- /dev/null
+++ b/changelogs/unreleased/58649-project-template-for-android.yml
@@ -0,0 +1,5 @@
+---
+title: Add project template for Android
+merge_request: 25870
+author:
+type: changed
diff --git a/lib/gitlab/project_template.rb b/lib/gitlab/project_template.rb
index 8a908291637..99885be8755 100644
--- a/lib/gitlab/project_template.rb
+++ b/lib/gitlab/project_template.rb
@@ -30,6 +30,7 @@ module Gitlab
ProjectTemplate.new('express', 'NodeJS Express', _('Includes an MVC structure to help you get started.'), 'https://gitlab.com/gitlab-org/project-templates/express', 'illustrations/logos/express.svg'),
ProjectTemplate.new('iosswift', 'iOS (Swift)', _('A ready-to-go template for use with iOS Swift apps.'), 'https://gitlab.com/gitlab-org/project-templates/iosswift'),
ProjectTemplate.new('dotnetcore', '.NET Core', _('A .NET Core console application template, customizable for any .NET Core project'), 'https://gitlab.com/gitlab-org/project-templates/dotnetcore', 'illustrations/logos/dotnet.svg'),
+ ProjectTemplate.new('android', 'Android', _('A ready-to-go template for use with Android apps.'), 'https://gitlab.com/gitlab-org/project-templates/android', 'illustrations/logos/android.svg'),
ProjectTemplate.new('gomicro', 'Go Micro', _('Go Micro is a framework for micro service development.'), 'https://gitlab.com/gitlab-org/project-templates/go-micro'),
ProjectTemplate.new('hugo', 'Pages/Hugo', _('Everything you need to create a GitLab Pages site using Hugo.'), 'https://gitlab.com/pages/hugo'),
ProjectTemplate.new('jekyll', 'Pages/Jekyll', _('Everything you need to create a GitLab Pages site using Jekyll.'), 'https://gitlab.com/pages/jekyll'),
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 05d8ac1a8d0..d7e7ee87410 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -324,6 +324,9 @@ msgstr ""
msgid "A ready-to-go template for use with iOS Swift apps."
msgstr ""
+msgid "A ready-to-go template for use with Android apps."
+msgstr ""
+
msgid "A regular expression that will be used to find the test coverage output in the job trace. Leave blank to disable"
msgstr ""
diff --git a/spec/lib/gitlab/project_template_spec.rb b/spec/lib/gitlab/project_template_spec.rb
index c9b93a84aef..8c2fc048a54 100644
--- a/spec/lib/gitlab/project_template_spec.rb
+++ b/spec/lib/gitlab/project_template_spec.rb
@@ -9,6 +9,7 @@ describe Gitlab::ProjectTemplate do
described_class.new('express', 'NodeJS Express', 'Includes an MVC structure, .gitignore, Gemfile, and more great stuff', 'https://gitlab.com/gitlab-org/project-templates/express'),
described_class.new('iosswift', 'iOS (Swift)', 'A ready-to-go template for use with iOS Swift apps.', 'https://gitlab.com/gitlab-org/project-templates/iosswift'),
described_class.new('dotnetcore', '.NET Core', 'A .NET Core console application template, customizable for any .NET Core project', 'https://gitlab.com/gitlab-org/project-templates/dotnetcore'),
+ described_class.new('android', 'Android', 'A ready-to-go template for use with Android apps.', 'https://gitlab.com/gitlab-org/project-templates/android'),
described_class.new('gomicro', 'Go Micro', 'Go Micro is a framework for micro service development.', 'https://gitlab.com/gitlab-org/project-templates/go-micro'),
described_class.new('hugo', 'Pages/Hugo', 'Everything you need to get started using a Hugo Pages site.', 'https://gitlab.com/pages/hugo'),
described_class.new('jekyll', 'Pages/Jekyll', 'Everything you need to get started using a Jekyll Pages site.', 'https://gitlab.com/pages/jekyll'),
diff --git a/vendor/project_templates/android.tar.gz b/vendor/project_templates/android.tar.gz
new file mode 100644
index 00000000000..3df17a0d9a6
--- /dev/null
+++ b/vendor/project_templates/android.tar.gz
Binary files differ