From 43c0c52225007ba370be9e42653738b151ac3845 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Tue, 10 May 2016 13:08:29 -0700 Subject: [PATCH 1/2] Fix regexp that strips invalid characters from the Uniform Type Identifier Fixes #3835 --- packages/flutter_tools/lib/src/commands/create.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/commands/create.dart b/packages/flutter_tools/lib/src/commands/create.dart index 122294c338..380dce52fb 100644 --- a/packages/flutter_tools/lib/src/commands/create.dart +++ b/packages/flutter_tools/lib/src/commands/create.dart @@ -193,7 +193,7 @@ String _createAndroidIdentifier(String name) { String _createUTIIdentifier(String name) { // Create a UTI (https://en.wikipedia.org/wiki/Uniform_Type_Identifier) from a base name - RegExp disallowed = new RegExp(r"[^a-zA-Z0-9\-.\u0080-\uffff]+"); + RegExp disallowed = new RegExp(r"[^a-zA-Z0-9\-\.\u0080-\uffff]+"); name = camelCase(name).replaceAll(disallowed, ''); name = name.isEmpty ? 'untitled' : name; return 'com.yourcompany.$name'; From baa25c83fbf7adeaf3e1cf2f2c1122ab2372d771 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Tue, 10 May 2016 13:15:14 -0700 Subject: [PATCH 2/2] Fix broken identifier in the hello world example --- examples/hello_world/ios/Info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hello_world/ios/Info.plist b/examples/hello_world/ios/Info.plist index a6440c1258..ad65487fb6 100644 --- a/examples/hello_world/ios/Info.plist +++ b/examples/hello_world/ios/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable Runner CFBundleIdentifier - io.flutter.example.hello_world + io.flutter.example.helloworld CFBundleInfoDictionaryVersion 6.0 CFBundleName