fix(app): use Pipelines as the installed display name
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<!-- Explicit ws:// LAN/VPN profiles are supported; no automatic TLS
|
<!-- Explicit ws:// LAN/VPN profiles are supported; no automatic TLS
|
||||||
downgrade or discovery is performed. Settings warns about cleartext. -->
|
downgrade or discovery is performed. Settings warns about cleartext. -->
|
||||||
<application
|
<application
|
||||||
android:label="Pipelines Next"
|
android:label="Pipelines"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:usesCleartextTraffic="true"
|
android:usesCleartextTraffic="true"
|
||||||
android:icon="@mipmap/ic_launcher">
|
android:icon="@mipmap/ic_launcher">
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Pipelines App</string>
|
<string>Pipelines</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>pipelines_app</string>
|
<string>Pipelines</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
test('installed Android, iOS and web display names are Pipelines', () {
|
||||||
|
final android = File(
|
||||||
|
'android/app/src/main/AndroidManifest.xml',
|
||||||
|
).readAsStringSync();
|
||||||
|
expect(android, contains('android:label="Pipelines"'));
|
||||||
|
final ios = File('ios/Runner/Info.plist').readAsStringSync();
|
||||||
|
for (final key in ['CFBundleDisplayName', 'CFBundleName']) {
|
||||||
|
expect(
|
||||||
|
RegExp('<key>$key</key>\\s*<string>Pipelines</string>').hasMatch(ios),
|
||||||
|
isTrue,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
final web =
|
||||||
|
jsonDecode(File('web/manifest.json').readAsStringSync())
|
||||||
|
as Map<String, dynamic>;
|
||||||
|
expect(web['name'], 'Pipelines');
|
||||||
|
expect(web['short_name'], 'Pipelines');
|
||||||
|
final html = File('web/index.html').readAsStringSync();
|
||||||
|
expect(html, contains('<title>Pipelines</title>'));
|
||||||
|
expect(
|
||||||
|
html,
|
||||||
|
contains('name="apple-mobile-web-app-title" content="Pipelines"'),
|
||||||
|
);
|
||||||
|
// Display branding must not change the installed Android app's identity.
|
||||||
|
expect(
|
||||||
|
File('android/app/build.gradle.kts').readAsStringSync(),
|
||||||
|
contains('applicationId = "net.awan.pipelines.next"'),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
+2
-2
@@ -23,14 +23,14 @@
|
|||||||
<!-- iOS meta tags & icons -->
|
<!-- iOS meta tags & icons -->
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
<meta name="apple-mobile-web-app-title" content="pipelines_app">
|
<meta name="apple-mobile-web-app-title" content="Pipelines">
|
||||||
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
||||||
|
|
||||||
<!-- Favicon -->
|
<!-- Favicon -->
|
||||||
<link rel="icon" type="image/svg+xml" href="favicon.svg"/>
|
<link rel="icon" type="image/svg+xml" href="favicon.svg"/>
|
||||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||||
|
|
||||||
<title>pipelines_app</title>
|
<title>Pipelines</title>
|
||||||
<!-- The preview sits behind a login cookie; a manifest request carries no
|
<!-- The preview sits behind a login cookie; a manifest request carries no
|
||||||
cookies unless asked to, and is then refused with 401. -->
|
cookies unless asked to, and is then refused with 401. -->
|
||||||
<link rel="manifest" href="manifest.json" crossorigin="use-credentials">
|
<link rel="manifest" href="manifest.json" crossorigin="use-credentials">
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "pipelines_app",
|
"name": "Pipelines",
|
||||||
"short_name": "pipelines_app",
|
"short_name": "Pipelines",
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"background_color": "#101013",
|
"background_color": "#101013",
|
||||||
"theme_color": "#101013",
|
"theme_color": "#101013",
|
||||||
"description": "A new Flutter project.",
|
"description": "Pipelines workflows, runs, and chats.",
|
||||||
"orientation": "portrait-primary",
|
"orientation": "portrait-primary",
|
||||||
"prefer_related_applications": false,
|
"prefer_related_applications": false,
|
||||||
"icons": [
|
"icons": [
|
||||||
|
|||||||
Reference in New Issue
Block a user