Skip to content

Commit

Permalink
setup and run package_rename
Browse files Browse the repository at this point in the history
  • Loading branch information
albemala committed Oct 8, 2023
1 parent 5bf4ae5 commit 6ee2425
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 44 deletions.
2 changes: 1 addition & 1 deletion macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
31E66861CB054FA870558F6D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
33CC10ED2044A3C60003C045 /* Ejimo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Ejimo.app; sourceTree = BUILT_PRODUCTS_DIR; };
33CC10ED2044A3C60003C045 /* Ejimo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Ejimo.app"; sourceTree = BUILT_PRODUCTS_DIR; };
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
Expand Down
4 changes: 2 additions & 2 deletions macos/Runner/Configs/AppInfo.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// 'flutter create' template.

// The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = app
PRODUCT_NAME = Ejimo

// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = me.albemala.ejimo

// The copyright displayed in application information
PRODUCT_COPYRIGHT = Copyright © 2021 Alberto Malagoli (albemala.me). All rights reserved.
PRODUCT_COPYRIGHT = Copyright © 2023 Alberto Malagoli (albemala.me). All rights reserved.
32 changes: 32 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.3"
csslib:
dependency: transitive
description:
name: csslib
sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
cupertino_icons:
dependency: "direct main"
description:
Expand Down Expand Up @@ -393,6 +401,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
html:
dependency: transitive
description:
name: html
sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a"
url: "https://pub.dev"
source: hosted
version: "0.15.4"
http:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -473,6 +489,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.7.1"
logger:
dependency: transitive
description:
name: logger
sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac"
url: "https://pub.dev"
source: hosted
version: "2.0.2+1"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -545,6 +569,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.1"
package_rename:
dependency: "direct dev"
description:
name: package_rename
sha256: ec9176a6bf0d71ce234b6d7582a3d676794ba453a8232a794d98b8c79210c0e5
url: "https://pub.dev"
source: hosted
version: "1.5.1"
path:
dependency: transitive
description:
Expand Down
27 changes: 27 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ dev_dependencies:
very_good_analysis: ^5.0.0+1
# app icons
flutter_launcher_icons_maker: ^0.10.2
package_rename: ^1.5.1
# windows
msix: ^3.7.0

Expand All @@ -84,6 +85,32 @@ flutter_icons:
# adaptive_icon_background: "assets/app-icon/android-background.png"
adaptive_icon_foreground: "assets/app-icon-android-foreground.png"

# dart run package_rename
package_rename_config:
android:
app_name: Ejimo
package_name: me.albemala.ejimo
ios:
app_name: Ejimo
bundle_name: Ejimo
package_name: me.albemala.ejimo
macos:
app_name: Ejimo
package_name: me.albemala.ejimo
copyright_notice: Copyright © 2023 Alberto Malagoli (albemala.me). All rights reserved.
windows:
app_name: Ejimo
organization: albemala.me
copyright_notice: Copyright © 2023 Alberto Malagoli (albemala.me).
exe_name: Ejimo
linux:
app_name: Ejimo
package_name: me.albemala.ejimo
exe_name: Ejimo
web:
app_name: Ejimo
description: Find and copy unicode characters, emoji, kaomoji and symbols with Ejimo.

msix_config:
# Windows Store
msix_version: 1.3.0.0
Expand Down
69 changes: 33 additions & 36 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -1,52 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">

<title>exabox - Essential tools for developers</title>
<title>Ejimo</title>

<meta name="title"
content="Ejimo - Comprehensive emoji and symbol picker"/>
<meta name="description"
content="Find and copy unicode characters, emoticons, glyphs and symbols with Ejimo."/>
<meta name="author"
content="Alberto Malagoli"/>
<meta name="title" content="Ejimo - Comprehensive emoji and symbol picker">
<meta name="description" content="Find and copy unicode characters, emoji, kaomoji and symbols with Ejimo.">
<meta name="author" content="Alberto Malagoli">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Ejimo">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Ejimo">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png">

<link rel="manifest" href="manifest.json">
<link rel="manifest" href="manifest.json">
</head>
<body>
<div style="width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center;">
<img src="assets/assets/images/app-icon.png" width="96px" height="96px"/>
</div>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
<div style="width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center;">
<img src="assets/assets/images/app-icon.png" width="96px" height="96px">
</div>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = null;
var scriptLoaded = false;
function loadMainDartJs() {
Expand Down Expand Up @@ -109,6 +106,6 @@
// Service workers not supported. Just drop the <script> tag.
loadMainDartJs();
}
</script>
</script>
</body>
</html>
4 changes: 2 additions & 2 deletions web/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Ejimo - Comprehensive emoji and symbol picker",
"name": "Ejimo",
"short_name": "Ejimo",
"start_url": ".",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#6200EE",
"description": "Comprehensive emoji and symbol picker",
"description": "Find and copy unicode characters, emoji, kaomoji and symbols with Ejimo.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
Expand Down
6 changes: 3 additions & 3 deletions windows/runner/Runner.rc
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ BEGIN
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "com.example" "\0"
VALUE "FileDescription", "Comprehensive emoji and symbol picker" "\0"
VALUE "CompanyName", "albemala.me" "\0"
VALUE "FileDescription", "Ejimo" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "Ejimo" "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0"
VALUE "LegalCopyright", "Copyright © 2023 Alberto Malagoli (albemala.me)." "\0"
VALUE "OriginalFilename", "Ejimo.exe" "\0"
VALUE "ProductName", "Ejimo" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
Expand Down

0 comments on commit 6ee2425

Please sign in to comment.