Browse Source

ComPDFKit(flutter) - 1. Cocoapods上传官网后的demo完成

yangliuhua 1 year ago
parent
commit
363c1ac947

+ 3 - 1
example/ios/Podfile

@@ -30,7 +30,9 @@ flutter_ios_podfile_setup
 target 'Runner' do
   use_modular_headers!
   flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
-  pod 'ComPDFKit', podspec:'http://test-pdf-pro.kdan.cn:3026/download/compdfkit_flutter.podspec'
+  pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/latest.podspec'
+  pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/latest.podspec'
+
   target 'RunnerTests' do
     inherit! :search_paths
   end

+ 52 - 74
example/ios/Runner.xcodeproj/project.pbxproj

@@ -7,17 +7,16 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		04D534CDD3EDE0002D229E80 /* libPods-RunnerTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B923948C70C541A4FA1E9A0 /* libPods-RunnerTests.a */; };
 		1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
 		331C80F4294D02FB00263BE5 /* RunnerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 331C80F3294D02FB00263BE5 /* RunnerTests.m */; };
+		39ACF3E8BDFB69B9DC6D0418 /* libPods-RunnerTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BD70583CC423FE53C522AB4B /* libPods-RunnerTests.a */; };
 		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
-		955F46CB74A87BF7A3E40B37 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BE8082CFDFBA61B2A470C6C /* libPods-Runner.a */; };
 		978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
 		97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
 		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
 		97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
 		97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-		C98D6EB52A713649007AA8A2 /* developer_guide_ios.pdf in Resources */ = {isa = PBXBuildFile; fileRef = C98D6EB42A713649007AA8A2 /* developer_guide_ios.pdf */; };
+		B7723309450AF7EF0977FF66 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FF6F95A09A114B49C73592DE /* libPods-Runner.a */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -33,15 +32,16 @@
 /* Begin PBXFileReference section */
 		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
 		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
-		2B923948C70C541A4FA1E9A0 /* libPods-RunnerTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RunnerTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
-		2BE8082CFDFBA61B2A470C6C /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+		2F4D3F9F744EDFFF5CBB3DD1 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
+		3109B9D063B26A3C00483BD8 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
 		331C80F1294D02FB00263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
 		331C80F3294D02FB00263BE5 /* RunnerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerTests.m; sourceTree = "<group>"; };
 		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
-		6033F5536605F3DD8BE8939F /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
+		5475CE6F6361F208A8ED5374 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
 		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
 		7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
 		7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+		92267114E579C9D7363D5208 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
 		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
 		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
 		97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -50,12 +50,10 @@
 		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
 		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		983D010C6D7428917F0E74AF /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
-		C98D6EB42A713649007AA8A2 /* developer_guide_ios.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = developer_guide_ios.pdf; path = ../../../ios/developer_guide_ios.pdf; sourceTree = "<group>"; };
-		D2A5C6582AC4E9E4A8634AC8 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
-		D5A1A9E729706B785EAFCCA9 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
-		F0BF82B0CA63BA237515692C /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
-		F31731A083A5AC2CD54B09CA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
+		BD70583CC423FE53C522AB4B /* libPods-RunnerTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RunnerTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+		C5DF19B0C6B78F87D0F6650A /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
+		DD24D00DEA1F277B11C7AE0D /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
+		FF6F95A09A114B49C73592DE /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -63,7 +61,7 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				04D534CDD3EDE0002D229E80 /* libPods-RunnerTests.a in Frameworks */,
+				39ACF3E8BDFB69B9DC6D0418 /* libPods-RunnerTests.a in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -71,7 +69,7 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				955F46CB74A87BF7A3E40B37 /* libPods-Runner.a in Frameworks */,
+				B7723309450AF7EF0977FF66 /* libPods-Runner.a in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -89,12 +87,12 @@
 		638F44698ADE83F43545F983 /* Pods */ = {
 			isa = PBXGroup;
 			children = (
-				6033F5536605F3DD8BE8939F /* Pods-Runner.debug.xcconfig */,
-				D5A1A9E729706B785EAFCCA9 /* Pods-Runner.release.xcconfig */,
-				F31731A083A5AC2CD54B09CA /* Pods-Runner.profile.xcconfig */,
-				F0BF82B0CA63BA237515692C /* Pods-RunnerTests.debug.xcconfig */,
-				D2A5C6582AC4E9E4A8634AC8 /* Pods-RunnerTests.release.xcconfig */,
-				983D010C6D7428917F0E74AF /* Pods-RunnerTests.profile.xcconfig */,
+				3109B9D063B26A3C00483BD8 /* Pods-Runner.debug.xcconfig */,
+				5475CE6F6361F208A8ED5374 /* Pods-Runner.release.xcconfig */,
+				2F4D3F9F744EDFFF5CBB3DD1 /* Pods-Runner.profile.xcconfig */,
+				C5DF19B0C6B78F87D0F6650A /* Pods-RunnerTests.debug.xcconfig */,
+				92267114E579C9D7363D5208 /* Pods-RunnerTests.release.xcconfig */,
+				DD24D00DEA1F277B11C7AE0D /* Pods-RunnerTests.profile.xcconfig */,
 			);
 			path = Pods;
 			sourceTree = "<group>";
@@ -118,7 +116,7 @@
 				331C80F2294D02FB00263BE5 /* RunnerTests */,
 				97C146EF1CF9000F007C117D /* Products */,
 				638F44698ADE83F43545F983 /* Pods */,
-				F554E627B7A596C18F6C30EC /* Frameworks */,
+				F4153698990E6525704E215E /* Frameworks */,
 			);
 			sourceTree = "<group>";
 		};
@@ -134,7 +132,6 @@
 		97C146F01CF9000F007C117D /* Runner */ = {
 			isa = PBXGroup;
 			children = (
-				C98D6EB42A713649007AA8A2 /* developer_guide_ios.pdf */,
 				7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
 				7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
 				97C146FA1CF9000F007C117D /* Main.storyboard */,
@@ -156,11 +153,11 @@
 			name = "Supporting Files";
 			sourceTree = "<group>";
 		};
-		F554E627B7A596C18F6C30EC /* Frameworks */ = {
+		F4153698990E6525704E215E /* Frameworks */ = {
 			isa = PBXGroup;
 			children = (
-				2BE8082CFDFBA61B2A470C6C /* libPods-Runner.a */,
-				2B923948C70C541A4FA1E9A0 /* libPods-RunnerTests.a */,
+				FF6F95A09A114B49C73592DE /* libPods-Runner.a */,
+				BD70583CC423FE53C522AB4B /* libPods-RunnerTests.a */,
 			);
 			name = Frameworks;
 			sourceTree = "<group>";
@@ -172,7 +169,7 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = 331C80F7294D02FB00263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
 			buildPhases = (
-				83EE13E06F8D899BA2AB6AF5 /* [CP] Check Pods Manifest.lock */,
+				0F6A4B36479457D48DF4508D /* [CP] Check Pods Manifest.lock */,
 				331C80ED294D02FB00263BE5 /* Sources */,
 				331C80EE294D02FB00263BE5 /* Frameworks */,
 				331C80EF294D02FB00263BE5 /* Resources */,
@@ -191,14 +188,13 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
 			buildPhases = (
-				9FF66CFE937769BCF0624051 /* [CP] Check Pods Manifest.lock */,
+				CA173C363A042A90C8DC9FEF /* [CP] Check Pods Manifest.lock */,
 				9740EEB61CF901F6004384FC /* Run Script */,
 				97C146EA1CF9000F007C117D /* Sources */,
 				97C146EB1CF9000F007C117D /* Frameworks */,
 				97C146EC1CF9000F007C117D /* Resources */,
 				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
-				88AA2C2CA9E762CFA665D633 /* [CP] Embed Pods Frameworks */,
-				57BE941E48C1B3014E79E3A6 /* [CP] Copy Pods Resources */,
+				C42D8B54855FE995C8B37AEB /* [CP] Embed Pods Frameworks */,
 			);
 			buildRules = (
 			);
@@ -262,69 +258,66 @@
 				3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
 				97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
 				97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
-				C98D6EB52A713649007AA8A2 /* developer_guide_ios.pdf in Resources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
-		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+		0F6A4B36479457D48DF4508D /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
-			alwaysOutOfDate = 1;
 			buildActionMask = 2147483647;
 			files = (
 			);
+			inputFileListPaths = (
+			);
 			inputPaths = (
-				"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+				"${PODS_ROOT}/Manifest.lock",
+			);
+			name = "[CP] Check Pods Manifest.lock";
+			outputFileListPaths = (
 			);
-			name = "Thin Binary";
 			outputPaths = (
+				"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+			showEnvVarsInLog = 0;
 		};
-		57BE941E48C1B3014E79E3A6 /* [CP] Copy Pods Resources */ = {
+		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
 			isa = PBXShellScriptBuildPhase;
+			alwaysOutOfDate = 1;
 			buildActionMask = 2147483647;
 			files = (
 			);
-			inputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
+			inputPaths = (
+				"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
 			);
-			name = "[CP] Copy Pods Resources";
-			outputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
+			name = "Thin Binary";
+			outputPaths = (
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
-			showEnvVarsInLog = 0;
+			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
 		};
-		83EE13E06F8D899BA2AB6AF5 /* [CP] Check Pods Manifest.lock */ = {
+		9740EEB61CF901F6004384FC /* Run Script */ = {
 			isa = PBXShellScriptBuildPhase;
+			alwaysOutOfDate = 1;
 			buildActionMask = 2147483647;
 			files = (
 			);
-			inputFileListPaths = (
-			);
 			inputPaths = (
-				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
-				"${PODS_ROOT}/Manifest.lock",
-			);
-			name = "[CP] Check Pods Manifest.lock";
-			outputFileListPaths = (
 			);
+			name = "Run Script";
 			outputPaths = (
-				"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
-			showEnvVarsInLog = 0;
+			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
 		};
-		88AA2C2CA9E762CFA665D633 /* [CP] Embed Pods Frameworks */ = {
+		C42D8B54855FE995C8B37AEB /* [CP] Embed Pods Frameworks */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
@@ -341,22 +334,7 @@
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
 			showEnvVarsInLog = 0;
 		};
-		9740EEB61CF901F6004384FC /* Run Script */ = {
-			isa = PBXShellScriptBuildPhase;
-			alwaysOutOfDate = 1;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			inputPaths = (
-			);
-			name = "Run Script";
-			outputPaths = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-			shellPath = /bin/sh;
-			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
-		};
-		9FF66CFE937769BCF0624051 /* [CP] Check Pods Manifest.lock */ = {
+		CA173C363A042A90C8DC9FEF /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
@@ -502,7 +480,7 @@
 		};
 		331C80F8294D02FB00263BE5 /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = F0BF82B0CA63BA237515692C /* Pods-RunnerTests.debug.xcconfig */;
+			baseConfigurationReference = C5DF19B0C6B78F87D0F6650A /* Pods-RunnerTests.debug.xcconfig */;
 			buildSettings = {
 				BUNDLE_LOADER = "$(TEST_HOST)";
 				CURRENT_PROJECT_VERSION = 1;
@@ -516,7 +494,7 @@
 		};
 		331C80F9294D02FB00263BE5 /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = D2A5C6582AC4E9E4A8634AC8 /* Pods-RunnerTests.release.xcconfig */;
+			baseConfigurationReference = 92267114E579C9D7363D5208 /* Pods-RunnerTests.release.xcconfig */;
 			buildSettings = {
 				BUNDLE_LOADER = "$(TEST_HOST)";
 				CURRENT_PROJECT_VERSION = 1;
@@ -530,7 +508,7 @@
 		};
 		331C80FA294D02FB00263BE5 /* Profile */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 983D010C6D7428917F0E74AF /* Pods-RunnerTests.profile.xcconfig */;
+			baseConfigurationReference = DD24D00DEA1F277B11C7AE0D /* Pods-RunnerTests.profile.xcconfig */;
 			buildSettings = {
 				BUNDLE_LOADER = "$(TEST_HOST)";
 				CURRENT_PROJECT_VERSION = 1;

+ 0 - 8
example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>PreviewsEnabled</key>
-	<false/>
-</dict>
-</plist>

+ 0 - 25
example/ios/Runner/Assets.xcassets/CPDFThunbnailImageEnter.imageset/Contents.json

@@ -1,25 +0,0 @@
-{
-  "images" : [
-    {
-      "filename" : "thumbnail.pdf",
-      "idiom" : "universal"
-    },
-    {
-      "appearances" : [
-        {
-          "appearance" : "luminosity",
-          "value" : "dark"
-        }
-      ],
-      "filename" : "thumbnaill.pdf",
-      "idiom" : "universal"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  },
-  "properties" : {
-    "template-rendering-intent" : "original"
-  }
-}

+ 0 - 105
example/ios/Runner/Assets.xcassets/CPDFThunbnailImageEnter.imageset/thumbnail.pdf

@@ -1,105 +0,0 @@
-%PDF-1.7
-
-1 0 obj
-  << >>
-endobj
-
-2 0 obj
-  << /Length 3 0 R >>
-stream
-/DeviceRGB CS
-/DeviceRGB cs
-q
-1.000000 0.000000 -0.000000 1.000000 1.250000 1.000000 cm
-0.262745 0.278431 0.301961 scn
-0.750000 17.750000 m
-0.000000 17.750000 l
-0.000000 17.000000 l
-0.000000 3.000000 l
-0.000000 2.250000 l
-0.750000 2.250000 l
-3.750000 2.250000 l
-3.750000 1.500000 l
-3.750000 0.000000 l
-5.250000 0.000000 l
-16.250000 0.000000 l
-17.750000 0.000000 l
-17.750000 1.500000 l
-17.750000 12.500000 l
-17.750000 14.000000 l
-16.250000 14.000000 l
-15.500000 14.000000 l
-15.500000 17.000000 l
-15.500000 17.750000 l
-14.750000 17.750000 l
-0.750000 17.750000 l
-h
-14.000000 14.000000 m
-14.000000 16.250000 l
-1.500000 16.250000 l
-1.500000 3.750000 l
-3.750000 3.750000 l
-3.750000 12.500000 l
-3.750000 14.000000 l
-5.250000 14.000000 l
-14.000000 14.000000 l
-h
-5.250000 2.250000 m
-5.250000 1.500000 l
-16.250000 1.500000 l
-16.250000 12.500000 l
-5.250000 12.500000 l
-5.250000 3.750000 l
-5.250000 2.250000 l
-h
-f*
-n
-Q
-
-endstream
-endobj
-
-3 0 obj
-  907
-endobj
-
-4 0 obj
-  << /Annots []
-     /Type /Page
-     /MediaBox [ 0.000000 0.000000 20.000000 20.000000 ]
-     /Resources 1 0 R
-     /Contents 2 0 R
-     /Parent 5 0 R
-  >>
-endobj
-
-5 0 obj
-  << /Kids [ 4 0 R ]
-     /Count 1
-     /Type /Pages
-  >>
-endobj
-
-6 0 obj
-  << /Pages 5 0 R
-     /Type /Catalog
-  >>
-endobj
-
-xref
-0 7
-0000000000 65535 f
-0000000010 00000 n
-0000000034 00000 n
-0000000997 00000 n
-0000001019 00000 n
-0000001192 00000 n
-0000001266 00000 n
-trailer
-<< /ID [ (some) (id) ]
-   /Root 6 0 R
-   /Size 7
->>
-startxref
-1325
-%%EOF

+ 0 - 105
example/ios/Runner/Assets.xcassets/CPDFThunbnailImageEnter.imageset/thumbnaill.pdf

@@ -1,105 +0,0 @@
-%PDF-1.7
-
-1 0 obj
-  << >>
-endobj
-
-2 0 obj
-  << /Length 3 0 R >>
-stream
-/DeviceRGB CS
-/DeviceRGB cs
-q
-1.000000 0.000000 -0.000000 1.000000 1.250000 1.000000 cm
-1.000000 1.000000 1.000000 scn
-0.750000 17.750000 m
-0.000000 17.750000 l
-0.000000 17.000000 l
-0.000000 3.000000 l
-0.000000 2.250000 l
-0.750000 2.250000 l
-3.750000 2.250000 l
-3.750000 1.500000 l
-3.750000 0.000000 l
-5.250000 0.000000 l
-16.250000 0.000000 l
-17.750000 0.000000 l
-17.750000 1.500000 l
-17.750000 12.500000 l
-17.750000 14.000000 l
-16.250000 14.000000 l
-15.500000 14.000000 l
-15.500000 17.000000 l
-15.500000 17.750000 l
-14.750000 17.750000 l
-0.750000 17.750000 l
-h
-14.000000 14.000000 m
-14.000000 16.250000 l
-1.500000 16.250000 l
-1.500000 3.750000 l
-3.750000 3.750000 l
-3.750000 12.500000 l
-3.750000 14.000000 l
-5.250000 14.000000 l
-14.000000 14.000000 l
-h
-5.250000 2.250000 m
-5.250000 1.500000 l
-16.250000 1.500000 l
-16.250000 12.500000 l
-5.250000 12.500000 l
-5.250000 3.750000 l
-5.250000 2.250000 l
-h
-f*
-n
-Q
-
-endstream
-endobj
-
-3 0 obj
-  907
-endobj
-
-4 0 obj
-  << /Annots []
-     /Type /Page
-     /MediaBox [ 0.000000 0.000000 20.000000 20.000000 ]
-     /Resources 1 0 R
-     /Contents 2 0 R
-     /Parent 5 0 R
-  >>
-endobj
-
-5 0 obj
-  << /Kids [ 4 0 R ]
-     /Count 1
-     /Type /Pages
-  >>
-endobj
-
-6 0 obj
-  << /Pages 5 0 R
-     /Type /Catalog
-  >>
-endobj
-
-xref
-0 7
-0000000000 65535 f
-0000000010 00000 n
-0000000034 00000 n
-0000000997 00000 n
-0000001019 00000 n
-0000001192 00000 n
-0000001266 00000 n
-trailer
-<< /ID [ (some) (id) ]
-   /Root 6 0 R
-   /Size 7
->>
-startxref
-1325
-%%EOF

+ 0 - 25
example/ios/Runner/Assets.xcassets/syasarrow.imageset/Contents.json

@@ -1,25 +0,0 @@
-{
-  "images" : [
-    {
-      "filename" : "syasarrow.pdf",
-      "idiom" : "universal"
-    },
-    {
-      "appearances" : [
-        {
-          "appearance" : "luminosity",
-          "value" : "dark"
-        }
-      ],
-      "filename" : "syasarrowl.pdf",
-      "idiom" : "universal"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  },
-  "properties" : {
-    "template-rendering-intent" : "original"
-  }
-}

+ 0 - 83
example/ios/Runner/Assets.xcassets/syasarrow.imageset/syasarrow.pdf

@@ -1,83 +0,0 @@
-%PDF-1.7
-
-1 0 obj
-  << >>
-endobj
-
-2 0 obj
-  << /Length 3 0 R >>
-stream
-/DeviceRGB CS
-/DeviceRGB cs
-q
--0.707096 0.707117 0.707096 0.707117 6.693624 3.764573 cm
-0.262745 0.278431 0.301961 scn
-0.000000 4.575516 m
--0.750000 4.575516 l
--0.750000 3.825516 l
-0.000000 3.825516 l
-0.000000 4.575516 l
-h
-8.485153 5.325516 m
-0.000000 5.325516 l
-0.000000 3.825516 l
-8.485153 3.825516 l
-8.485153 5.325516 l
-h
-0.750000 4.575516 m
-0.750000 13.060669 l
--0.750000 13.060669 l
--0.750000 4.575516 l
-0.750000 4.575516 l
-h
-f
-n
-Q
-
-endstream
-endobj
-
-3 0 obj
-  437
-endobj
-
-4 0 obj
-  << /Annots []
-     /Type /Page
-     /MediaBox [ 0.000000 0.000000 20.000000 20.000000 ]
-     /Resources 1 0 R
-     /Contents 2 0 R
-     /Parent 5 0 R
-  >>
-endobj
-
-5 0 obj
-  << /Kids [ 4 0 R ]
-     /Count 1
-     /Type /Pages
-  >>
-endobj
-
-6 0 obj
-  << /Pages 5 0 R
-     /Type /Catalog
-  >>
-endobj
-
-xref
-0 7
-0000000000 65535 f
-0000000010 00000 n
-0000000034 00000 n
-0000000527 00000 n
-0000000549 00000 n
-0000000722 00000 n
-0000000796 00000 n
-trailer
-<< /ID [ (some) (id) ]
-   /Root 6 0 R
-   /Size 7
->>
-startxref
-855
-%%EOF

+ 0 - 83
example/ios/Runner/Assets.xcassets/syasarrow.imageset/syasarrowl.pdf

@@ -1,83 +0,0 @@
-%PDF-1.7
-
-1 0 obj
-  << >>
-endobj
-
-2 0 obj
-  << /Length 3 0 R >>
-stream
-/DeviceRGB CS
-/DeviceRGB cs
-q
--0.707096 0.707117 0.707096 0.707117 6.693563 3.764573 cm
-1.000000 1.000000 1.000000 scn
-0.000000 4.575516 m
--0.750000 4.575516 l
--0.750000 3.825516 l
-0.000000 3.825516 l
-0.000000 4.575516 l
-h
-8.485153 5.325516 m
-0.000000 5.325516 l
-0.000000 3.825516 l
-8.485153 3.825516 l
-8.485153 5.325516 l
-h
-0.750000 4.575516 m
-0.750000 13.060669 l
--0.750000 13.060669 l
--0.750000 4.575516 l
-0.750000 4.575516 l
-h
-f
-n
-Q
-
-endstream
-endobj
-
-3 0 obj
-  437
-endobj
-
-4 0 obj
-  << /Annots []
-     /Type /Page
-     /MediaBox [ 0.000000 0.000000 20.000000 20.000000 ]
-     /Resources 1 0 R
-     /Contents 2 0 R
-     /Parent 5 0 R
-  >>
-endobj
-
-5 0 obj
-  << /Kids [ 4 0 R ]
-     /Count 1
-     /Type /Pages
-  >>
-endobj
-
-6 0 obj
-  << /Pages 5 0 R
-     /Type /Catalog
-  >>
-endobj
-
-xref
-0 7
-0000000000 65535 f
-0000000010 00000 n
-0000000034 00000 n
-0000000527 00000 n
-0000000549 00000 n
-0000000722 00000 n
-0000000796 00000 n
-trailer
-<< /ID [ (some) (id) ]
-   /Root 6 0 R
-   /Size 7
->>
-startxref
-855
-%%EOF

+ 2 - 13
ios/Classes/CPDFViewController.m

@@ -35,6 +35,8 @@
 
 @property(nonatomic, strong) CPDFSignatureWidgetAnnotation * signatureAnnotation;
 
+@property(nonatomic, strong) CPDFConfiguration *configuration;
+
 @end
 
 @implementation CPDFViewController
@@ -92,19 +94,6 @@
     [self.view addSubview:self.formBar];
 }
 
-- (void)initWitNavigationTitle {
-    //titleButton
-    CNavigationBarTitleButton * navTitleButton = [[CNavigationBarTitleButton alloc] init];
-    self.titleButton = navTitleButton;
-    self.navigationTitle = NSLocalizedString(@"View", nil);
-    [navTitleButton setImage:[UIImage imageNamed:@"syasarrow"] forState:UIControlStateNormal];
-    [navTitleButton addTarget:self action:@selector(titleButtonClickd:) forControlEvents:UIControlEventTouchUpInside];
-    [navTitleButton setTitle:self.navigationTitle forState:UIControlStateNormal];
-    [navTitleButton setTitleColor:[CPDFColorUtils CAnyReverseBackgooundColor] forState:UIControlStateNormal];
-    self.titleButton.frame = CGRectMake(0, 0, 50, 30);
-    self.navigationItem.titleView = self.titleButton;
-}
-
 - (void)viewWillLayoutSubviews {
     [super viewWillLayoutSubviews];
     if([self.popMenu superview]) {

+ 23 - 2
ios/Classes/CompdfkitFlutterPlugin.m

@@ -1,9 +1,12 @@
 #import "CompdfkitFlutterPlugin.h"
-#import "FLNativeView.h"
 
 #import <ComPDFKit/ComPDFKit.h>
 #import "CPDFViewController.h"
 
+@interface CompdfkitFlutterPlugin () <CPDFViewBaseControllerDelete>
+
+@end
+
 @implementation CompdfkitFlutterPlugin
 
 + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
@@ -32,8 +35,20 @@
               if ([tRootViewControl presentedViewController]) {
                   tRootViewControl = [tRootViewControl presentedViewController];
               }
-      CPDFViewController *pdfViewController = [[CPDFViewController alloc] initWithFilePath:path password:nil];
+      CPDFConfiguration *configuration = [[CPDFConfiguration alloc] init];
+      CNavBarButtonItem *thumbnail = [[CNavBarButtonItem alloc]initWithViewLeftBarButtonItem:CPDFViewBarLeftButtonItem_Thumbnail];
+      
+      CNavBarButtonItem *back = [[CNavBarButtonItem alloc]initWithViewLeftBarButtonItem:CPDFViewBarLeftButtonItem_Back];
 
+      CNavBarButtonItem *search = [[CNavBarButtonItem alloc]initWithViewRightBarButtonItem:CPDFViewBarRightButtonItem_Search];
+      CNavBarButtonItem *bota = [[CNavBarButtonItem alloc]initWithViewRightBarButtonItem:CPDFViewBarRightButtonItem_Bota];
+      CNavBarButtonItem *more = [[CNavBarButtonItem alloc]initWithViewRightBarButtonItem:CPDFViewBarRightButtonItem_More];
+      configuration.showleftItems = @[back,thumbnail];
+      configuration.showRightItems = @[search,bota,more];
+      
+      CPDFViewController *pdfViewController = [[CPDFViewController alloc] initWithFilePath:path password:nil configuration:configuration];
+      pdfViewController.delegate = self;
+     
       UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:pdfViewController];
       navigationController.modalPresentationStyle = UIModalPresentationFullScreen;
       [tRootViewControl presentViewController:navigationController animated:YES completion:nil];
@@ -50,4 +65,10 @@
     return paths.firstObject;
 }
 
+#pragma mark - CPDFViewBaseControllerDelete
+
+- (void)PDFViewBaseControllerDissmiss:(CPDFViewBaseController *)baseControllerDelete {
+    [baseControllerDelete dismissViewControllerAnimated:YES completion:nil];
+}
+
 @end

+ 0 - 26
ios/Classes/FLNativeView.h

@@ -1,26 +0,0 @@
-//
-//  FLNativeViewFactory.h
-//  compdfkit_flutter
-//
-//  Created by kdanmobile_2 on 2023/7/25.
-//
-
-#import <Flutter/Flutter.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface FLNativeViewFactory : NSObject <FlutterPlatformViewFactory>
-
-- (instancetype)initWithMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;
-
-@end
-
-@interface FLNativeView : NSObject <FlutterPlatformView>
-
-- (instancetype)initWithFrame:(CGRect)frame viewIndentifier:(int64_t)viewId argument:(id _Nullable)args binaryMessenger:(NSObject<FlutterBinaryMessenger> *)messenger;
-
-- (UIView *)view;
-
-@end
-
-NS_ASSUME_NONNULL_END

+ 0 - 55
ios/Classes/FLNativeView.m

@@ -1,55 +0,0 @@
-//
-//  FLNativeViewFactory.m
-//  compdfkit_flutter
-//
-//  Created by kdanmobile_2 on 2023/7/25.
-//
-
-#import "FLNativeView.h"
-
-#import <ComPDFKit/ComPDFKit.h>
-
-@implementation FLNativeViewFactory {
-    NSObject<FlutterBinaryMessenger>* _messenger;
-}
-
-- (instancetype)initWithMessenger:(NSObject<FlutterBinaryMessenger> *)messenger {
-    if (self = [super init]) {
-        _messenger = messenger;
-    }
-    return self;
-}
-
-#pragma mark - FlutterPlatformViewFactory
-
-- (NSObject<FlutterPlatformView> *)createWithFrame:(CGRect)frame viewIdentifier:(int64_t)viewId arguments:(id)args {
-    return [[FLNativeView alloc] initWithFrame:frame viewIndentifier:viewId argument:args binaryMessenger:_messenger];
-}
-
-@end
-
-@implementation FLNativeView {
-    UIView *_view;
-    CPDFView *_pdfView;
-}
-
-- (instancetype)initWithFrame:(CGRect)frame viewIndentifier:(int64_t)viewId argument:(id _Nullable)args binaryMessenger:(NSObject<FlutterBinaryMessenger> *)messenger {
-    self = [super init];
-    if (self) {
-        NSString *documentFolder = [NSHomeDirectory() stringByAppendingFormat:@"/%@/%@", @"Documents",@"Samples"];
-        NSString *filePath = [NSString stringWithFormat:@"%@/developer_guide_ios.pdf", documentFolder];
-        CPDFDocument *document = [[CPDFDocument alloc] initWithURL:[NSURL fileURLWithPath:filePath]];
-        _pdfView = [[CPDFView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width,  [UIScreen mainScreen].bounds.size.height)];
-        _pdfView.document = document;
-        
-        _view = [[UIView alloc] init];
-        [_view addSubview:_pdfView];
-    }
-    return self;
-}
-
-- (UIView *)view {
-    return _view;
-}
-
-@end

+ 1 - 0
ios/compdfkit_flutter.podspec

@@ -16,6 +16,7 @@ A new Flutter plugin project.
   s.source_files = 'Classes/**/*'
   s.public_header_files = 'Classes/**/*.h'
   s.dependency 'Flutter'
+  s.dependency("ComPDFKit_Tools")
   s.dependency("ComPDFKit")
   s.platform = :ios, '11.0'
 

BIN
ios/developer_guide_ios.pdf