Skip to content

Commit

Permalink
## 0.8.1
Browse files Browse the repository at this point in the history
### Feature

- Add Android Adaptive Icon support
  • Loading branch information
chendoxiu committed Jan 1, 2025
1 parent 037c8bd commit 76ea82a
Show file tree
Hide file tree
Showing 26 changed files with 149 additions and 136 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.8.1

### Feature

- Add Android Adaptive Icon support

## 0.8.0

### Feature
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Currently implemented features:
- Misskey Announcements
- Explore
- HashTag Page
-

Temporarily unimplemented features

Expand Down
Binary file added android/app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
24 changes: 24 additions & 0 deletions android/app/src/main/res/drawable-v24/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="107"
android:viewportHeight="107">
<path
android:pathData="M-0,-0h107v107h-107z"
android:strokeLineJoin="round"
android:strokeWidth="0.11889"
android:fillType="nonZero">
<aapt:attr name="android:fillColor">
<gradient
android:startX="37.86"
android:startY="104.66"
android:endX="69.14"
android:endY="2.34"
android:type="linear">
<item android:offset="0" android:color="#FFFF569A"/>
<item android:offset="1" android:color="#FFF4D6E3"/>
</gradient>
</aapt:attr>
</path>
</vector>
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions android/app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="107"
android:viewportHeight="107">
<group android:scaleX="0.88"
android:scaleY="0.88"
android:translateX="6.42"
android:translateY="6.42">
<path
android:pathData="m40.8,32.02c-4.51,0 -8.2,1.3 -11.08,3.89 -2.83,2.55 -4.24,5.85 -4.24,9.91l0,32.87l15.64,0L41.11,49.03c0,-2.41 0.76,-3.62 2.28,-3.62 0.84,0 1.39,0.3 1.65,0.89 0.26,0.55 0.39,1.46 0.39,2.73L45.43,78.68L60.99,78.68L60.99,48.82c0,-2.28 0.79,-3.42 2.36,-3.42 0.79,0 1.31,0.27 1.57,0.82 0.26,0.55 0.39,1.48 0.39,2.8l0,29.65l15.64,0l0,-31.64c0,-4.87 -1.26,-8.59 -3.77,-11.14 -2.51,-2.6 -6.13,-3.89 -10.84,-3.89 -3.04,0 -5.61,0.52 -7.7,1.57 -2.04,1 -3.85,2.62 -5.42,4.85 -2.88,-4.28 -7.02,-6.42 -12.42,-6.42z"
android:strokeLineJoin="round"
android:strokeWidth="0.17"
android:fillColor="#f4d7e3"/>
<path
android:pathData="M25.47,73.34L25.47,38.03q0,-6.53 4.24,-10.64 4.32,-4.18 11.08,-4.18 8.09,0 12.42,6.9 2.36,-3.6 5.42,-5.21 3.14,-1.69 7.7,-1.69 7.07,0 10.84,4.18 3.77,4.11 3.77,11.97L80.95,73.34L65.31,73.34L65.31,41.48q0,-2.13 -0.39,-3.01 -0.39,-0.88 -1.57,-0.88 -2.36,0 -2.36,3.67L60.99,73.34L45.43,73.34L45.43,41.48q0,-2.06 -0.39,-2.94 -0.39,-0.95 -1.65,-0.95 -2.28,0 -2.28,3.89l0,31.86z"
android:strokeLineJoin="round"
android:strokeWidth="0.4"
android:fillColor="#ffffff"/>
</group>
</vector>
11 changes: 4 additions & 7 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground>
<inset
android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" />
</foreground>
</adaptive-icon>
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions assets/android_icon/ic_launcher_background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions assets/android_icon/ic_launcher_foreground.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 1 addition & 122 deletions ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,122 +1 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "[email protected]",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{"images":[{"size":"20x20","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"[email protected]","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"[email protected]","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"[email protected]","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"[email protected]","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"[email protected]","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"[email protected]","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"[email protected]","scale":"1x"}],"info":{"version":1,"author":"xcode"}}
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.8.0+51
version: 0.8.1+52

environment:
sdk: '>=3.5.0 <4.0.0'
Expand Down Expand Up @@ -144,15 +144,15 @@ flutter_intl:
enabled: true
main_locale: zh_CN
flutter_launcher_icons:
android: true
android: false # flutter_launcher_icons can't support svg, use Android Studio to generate
ios: true
macos:
generate: true
linux: true
image_path: "assets/favicon.png"
min_sdk_android: 21 # android min sdk min:16, default 21
adaptive_icon_background: "#E9AFC6"
adaptive_icon_foreground: "assets/favicon.png"
# min_sdk_android: 21 # android min sdk min:16, default 21
# adaptive_icon_background: "assets/android_icon/ic_launcher_background.svg"
# adaptive_icon_foreground: "assets/android_icon/ic_launcher_foreground.svg"
# adaptive_icon_monochrome: "assets/android_icon/ic_launcher_foreground.svg"
# web:
# generate: true
# image_path: "assets/favicon.ico"
Expand Down

0 comments on commit 76ea82a

Please sign in to comment.