Prechádzať zdrojové kódy

Fix some known issue for release/0.1.1 (#2061)

* fix: only show discard dialog when prompt text is not empty

* fix: auto completion node widget text overflow

* chore: update bundle name and copyright
Lucas.Xu 2 rokov pred
rodič
commit
95475cb870

+ 1 - 1
frontend/appflowy_flutter/android/app/build.gradle

@@ -45,7 +45,7 @@ android {
 
     defaultConfig {
         // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
-        applicationId "com.example.appflowy_flutter"
+        applicationId "io.appflowy.appflowy"
         minSdkVersion 19
         targetSdkVersion 31
         versionCode flutterVersionCode.toInteger()

+ 1 - 1
frontend/appflowy_flutter/android/app/src/debug/AndroidManifest.xml

@@ -1,5 +1,5 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.example.appflowy_flutter">
+    package="io.appflowy.appflowy">
     <!-- Flutter needs it to communicate with the running application
          to allow setting breakpoints, to provide hot reload, etc.
     -->

+ 1 - 1
frontend/appflowy_flutter/android/app/src/main/AndroidManifest.xml

@@ -1,5 +1,5 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.example.appflowy_flutter">
+    package="io.appflowy.appflowy">
    <application
         android:label="appflowy_flutter"
         android:icon="@mipmap/ic_launcher"

+ 1 - 1
frontend/appflowy_flutter/android/app/src/main/kotlin/com/example/app_flowy/MainActivity.kt

@@ -1,4 +1,4 @@
-package com.example.appflowy_flutter
+package io.appflowy.appflowy
 
 import io.flutter.embedding.android.FlutterActivity
 

+ 1 - 1
frontend/appflowy_flutter/android/app/src/profile/AndroidManifest.xml

@@ -1,5 +1,5 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.example.appflowy_flutter">
+    package="io.appflowy.appflowy">
     <!-- Flutter needs it to communicate with the running application
          to allow setting breakpoints, to provide hot reload, etc.
     -->

+ 3 - 3
frontend/appflowy_flutter/ios/Runner.xcodeproj/project.pbxproj

@@ -359,7 +359,7 @@
 				ENABLE_BITCODE = NO;
 				INFOPLIST_FILE = Runner/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.example.appFlowy;
+				PRODUCT_BUNDLE_IDENTIFIER = io.appflowy.appflowy;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
 				SWIFT_VERSION = 5.0;
@@ -483,7 +483,7 @@
 				ENABLE_BITCODE = NO;
 				INFOPLIST_FILE = Runner/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.example.appFlowy;
+				PRODUCT_BUNDLE_IDENTIFIER = io.appflowy.appflowy;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -502,7 +502,7 @@
 				ENABLE_BITCODE = NO;
 				INFOPLIST_FILE = Runner/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.example.appFlowy;
+				PRODUCT_BUNDLE_IDENTIFIER = io.appflowy.appflowy;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
 				SWIFT_VERSION = 5.0;

+ 10 - 5
frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/openai/widgets/auto_completion_node_widget.dart

@@ -71,7 +71,7 @@ class _AutoCompletionInputState extends State<_AutoCompletionInput> {
         final renderBox = context.findRenderObject() as RenderBox?;
         if (renderBox != null) {
           if (!isTapDownDetailsInRenderBox(details, renderBox)) {
-            if (text.isNotEmpty || controller.text.isEmpty) {
+            if (text.isNotEmpty || controller.text.isNotEmpty) {
               showDialog(
                 context: context,
                 builder: (context) {
@@ -200,10 +200,15 @@ class _AutoCompletionInputState extends State<_AutoCompletionInput> {
           ),
           onPressed: () async => await _onExit(),
         ),
-        const Spacer(),
-        FlowyText.regular(
-          LocaleKeys.document_plugins_warning.tr(),
-          color: Theme.of(context).hintColor,
+        Expanded(
+          child: Container(
+            alignment: Alignment.centerRight,
+            child: FlowyText.regular(
+              LocaleKeys.document_plugins_warning.tr(),
+              color: Theme.of(context).hintColor,
+              overflow: TextOverflow.ellipsis,
+            ),
+          ),
         ),
       ],
     );

+ 1 - 1
frontend/appflowy_flutter/linux/CMakeLists.txt

@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
 project(runner LANGUAGES CXX)
 
 set(BINARY_NAME "appflowy_flutter")
-set(APPLICATION_ID "com.example.appflowy_flutter")
+set(APPLICATION_ID "io.appflowy.appflowy")
 
 cmake_policy(SET CMP0063 NEW)
 

+ 2 - 2
frontend/appflowy_flutter/macos/Runner/Configs/AppInfo.xcconfig

@@ -8,7 +8,7 @@
 PRODUCT_NAME = appflowy_flutter
 
 // The application's bundle identifier
-PRODUCT_BUNDLE_IDENTIFIER = com.example.appFlowy
+PRODUCT_BUNDLE_IDENTIFIER = io.appflowy.appflowy
 
 // The copyright displayed in application information
-PRODUCT_COPYRIGHT = Copyright © 2021 com.example. All rights reserved.
+PRODUCT_COPYRIGHT = Copyright © 2023 AppFlowy.IO. All rights reserved.

+ 2 - 2
frontend/appflowy_flutter/windows/runner/Runner.rc

@@ -89,11 +89,11 @@ BEGIN
     BEGIN
         BLOCK "040904e4"
         BEGIN
-            VALUE "CompanyName", "com.example" "\0"
+            VALUE "CompanyName", "AppFlowy.IO" "\0"
             VALUE "FileDescription", "AppFlowy" "\0"
             VALUE "FileVersion", VERSION_AS_STRING "\0"
             VALUE "InternalName", "appflowy_flutter" "\0"
-            VALUE "LegalCopyright", "Copyright (C) 2021 com.example. All rights reserved." "\0"
+            VALUE "LegalCopyright", "Copyright (C) 2023 AppFlowy.IO. All rights reserved." "\0"
             VALUE "OriginalFilename", "appflowy_flutter.exe" "\0"
             VALUE "ProductName", "appflowy_flutter" "\0"
             VALUE "ProductVersion", VERSION_AS_STRING "\0"