Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.hangman
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
org.benoitharrault.hangman
Commits
a693824e
Commit
a693824e
authored
Jun 22, 2021
by
Benoît Harrault
Browse files
Options
Downloads
Plain Diff
Merge branch '21-fix-application-icon' into 'master'
Resolve "Fix application icon" Closes
#21
See merge request
!18
parents
76fa1783
d32a7ae5
No related branches found
No related tags found
1 merge request
!18
Resolve "Fix application icon"
Pipeline
#1454
passed
Jun 25, 2021
Stage: test
Stage: update
Stage: build-debug
Changes
23
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
android/gradle.properties
+2
-2
2 additions, 2 deletions
android/gradle.properties
icons/build_icons.sh
+3
-35
3 additions, 35 deletions
icons/build_icons.sh
icons/icon.svg
+0
-0
0 additions, 0 deletions
icons/icon.svg
with
5 additions
and
37 deletions
android/gradle.properties
+
2
−
2
View file @
a693824e
...
...
@@ -2,5 +2,5 @@ org.gradle.jvmargs=-Xmx1536M
android.useAndroidX
=
true
android.enableJetifier
=
true
android.enableR8
=
true
app.versionName
=
1.1.
6
app.versionCode
=
6
app.versionName
=
1.1.
7
app.versionCode
=
7
This diff is collapsed.
Click to expand it.
icons/build_icons.sh
+
3
−
35
View file @
a693824e
...
...
@@ -9,7 +9,7 @@ command -v convert >/dev/null 2>&1 || { echo >&2 "I require convert (imagemagick
CURRENT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
BASE_DIR
=
"
$(
dirname
"
${
CURRENT_DIR
}
"
)
"
SOURCE
=
"
${
CURRENT_DIR
}
/
hangma
n.svg"
SOURCE
=
"
${
CURRENT_DIR
}
/
ico
n.svg"
OPTIPNG_OPTIONS
=
"-preserve -quiet -o7"
# optimize svg
...
...
@@ -31,6 +31,8 @@ function build_icon() {
TARGET_PNG
=
"
${
TARGET
}
.png"
mkdir
-p
"
$(
dirname
"
${
TARGET_PNG
}
"
)
"
inkscape
\
--export-width
=
${
ICON_SIZE
}
\
--export-height
=
${
ICON_SIZE
}
\
...
...
@@ -40,45 +42,11 @@ function build_icon() {
optipng
${
TARGET_PNG
}
${
TARGET_PNG
}
}
build_icon 324
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground
build_icon 144
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round
build_icon 144
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher
build_icon 162
${
BASE_DIR
}
/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground
build_icon 72
${
BASE_DIR
}
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round
build_icon 72
${
BASE_DIR
}
/android/app/src/main/res/mipmap-hdpi/ic_launcher
build_icon 432
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground
build_icon 192
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round
build_icon 192
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher
build_icon 108
${
BASE_DIR
}
/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground
build_icon 48
${
BASE_DIR
}
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round
build_icon 48
${
BASE_DIR
}
/android/app/src/main/res/mipmap-mdpi/ic_launcher
build_icon 216
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground
build_icon 216
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round
build_icon 216
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xhdpi/ic_launcher
build_icon 128
${
BASE_DIR
}
/assets/images/icon128
build_icon 192
${
BASE_DIR
}
/fastlane/metadata/android/en-US/images/icon
build_icon 192
${
BASE_DIR
}
/fastlane/metadata/android/fr-FR/images/icon
# convert to webp
function
convert_to_webp
()
{
FILE
=
"
$1
"
convert
${
FILE
}
.png
${
FILE
}
.webp
rm
${
FILE
}
.png
}
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-hdpi/ic_launcher
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-mdpi/ic_launcher
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round
convert_to_webp
${
BASE_DIR
}
/android/app/src/main/res/mipmap-xhdpi/ic_launcher
This diff is collapsed.
Click to expand it.
icons/
hangma
n.svg
→
icons/
ico
n.svg
+
0
−
0
View file @
a693824e
File moved
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment