diff --git a/app/android/app/src/main/AndroidManifest.xml b/app/android/app/src/main/AndroidManifest.xml index 3ac1b307..c47ad11d 100644 --- a/app/android/app/src/main/AndroidManifest.xml +++ b/app/android/app/src/main/AndroidManifest.xml @@ -7,7 +7,7 @@ diff --git a/app/ios/Runner/Info.plist b/app/ios/Runner/Info.plist index 828578ca..db91e3d0 100644 --- a/app/ios/Runner/Info.plist +++ b/app/ios/Runner/Info.plist @@ -20,7 +20,7 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Pipelines App + Pipelines CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -28,7 +28,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - pipelines_app + Pipelines CFBundlePackageType APPL CFBundleShortVersionString diff --git a/app/test/application/app_branding_test.dart b/app/test/application/app_branding_test.dart new file mode 100644 index 00000000..8ebd3ff4 --- /dev/null +++ b/app/test/application/app_branding_test.dart @@ -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\\s*Pipelines').hasMatch(ios), + isTrue, + ); + } + final web = + jsonDecode(File('web/manifest.json').readAsStringSync()) + as Map; + expect(web['name'], 'Pipelines'); + expect(web['short_name'], 'Pipelines'); + final html = File('web/index.html').readAsStringSync(); + expect(html, contains('Pipelines')); + 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"'), + ); + }); +} diff --git a/app/web/index.html b/app/web/index.html index 38e44012..38e964ff 100644 --- a/app/web/index.html +++ b/app/web/index.html @@ -23,14 +23,14 @@ - + - pipelines_app + Pipelines diff --git a/app/web/manifest.json b/app/web/manifest.json index 923765b7..f09946db 100644 --- a/app/web/manifest.json +++ b/app/web/manifest.json @@ -1,11 +1,11 @@ { - "name": "pipelines_app", - "short_name": "pipelines_app", + "name": "Pipelines", + "short_name": "Pipelines", "start_url": ".", "display": "standalone", "background_color": "#101013", "theme_color": "#101013", - "description": "A new Flutter project.", + "description": "Pipelines workflows, runs, and chats.", "orientation": "portrait-primary", "prefer_related_applications": false, "icons": [