Skip to content

Commit

Permalink
Added extra size for icon - 1024x1024
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkOSullivan94 committed Apr 15, 2018
1 parent a0d704d commit 2ce74e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions lib/android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,10 @@ changeAndroidLauncherIcon(String icon_name) async {
for (var x = 0; x < lines.length; x++) {
String line = lines[x];
if (line.contains("android:icon")) {
print("OLD LINE");
print(line);
// Using RegExp replace the value of android:icon to point to the new icon
line = line.replaceAll(
new RegExp('android:icon=\"([^*]|(\"+([^"/]|)))*\"'),
'android:icon="@mipmap/' + icon_name + '"');
print("NEW LINE");
print(line);
lines[x] = line;
}
}
Expand Down
7 changes: 1 addition & 6 deletions lib/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ import 'dart:convert';

/**
* File to handle the creation of icons for iOS platform
*
* Notes:
* 1. Config file containing icon setting: config_file_path (for Flutter projects)
* 2. iOS launcher icon setting (perhaps) - 'ASSETCATALOG_COMPILER_APPICON_NAME = <IconFolder>;'
* 3. IconFolder - <IconFolder>.appiconset
* 4. Contents.json - Assets.xcassets/<Icon-Name>.appiconset
*/
const String default_icon_folder =
"ios/Runner/Assets.xcassets/AppIcon.appiconset/";
Expand Down Expand Up @@ -39,6 +33,7 @@ List<IosIcon> ios_icons = [
new IosIcon(name: "-76x76@1x", size: 76),
new IosIcon(name: "-76x76@2x", size: 152),
new IosIcon(name: "-83.5x83.5@2x", size: 167),
new IosIcon(name: "-1024x1024@1x", size: 1024),
];

convertIos(config) {
Expand Down

0 comments on commit 2ce74e0

Please sign in to comment.