Pārlūkot izejas kodu

compdfkit(rn) - 1.13.0 release 修改包名,使用离线认证

liuxiaolong 9 mēneši atpakaļ
vecāks
revīzija
d1aeb55efe

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 3
App.tsx


+ 2 - 2
android/app/build.gradle

@@ -73,9 +73,9 @@ android {
 
     compileSdkVersion rootProject.ext.compileSdkVersion
 
-    namespace "com.compdfkit.reactnative.example"
+    namespace "com.compdfkit.pdfviewer"
     defaultConfig {
-        applicationId "com.compdfkit.reactnative.example"
+        applicationId "com.compdfkit.pdfviewer"
         minSdkVersion rootProject.ext.minSdkVersion
         targetSdkVersion rootProject.ext.targetSdkVersion
         versionCode 4

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

@@ -1,6 +1,6 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
-    package="com.compdfkit.reactnative.example">
+    package="com.compdfkit.pdfviewer">
 
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

+ 1 - 1
android/app/src/main/java/com/compdfkit/reactnative/example/MainActivity.java

@@ -1,4 +1,4 @@
-package com.compdfkit.reactnative.example;
+package com.compdfkit.pdfviewer;
 
 import com.facebook.react.ReactActivity;
 import com.facebook.react.ReactActivityDelegate;

+ 2 - 2
android/app/src/main/java/com/compdfkit/reactnative/example/MainApplication.java

@@ -1,9 +1,9 @@
-package com.compdfkit.reactnative.example;
+package com.compdfkit.pdfviewer;
 
 import android.app.Application;
 
 import com.compdfkit.ReactNativeFlipper;
-import com.compdfkit.reactnative.example.pdf.PDFReactPackage;
+import com.compdfkit.pdfviewer.pdf.PDFReactPackage;
 import com.facebook.react.PackageList;
 import com.facebook.react.ReactApplication;
 import com.facebook.react.ReactNativeHost;

+ 1 - 1
android/app/src/main/java/com/compdfkit/reactnative/example/pdf/OpenPDFModule.java

@@ -7,7 +7,7 @@
  * This notice may not be removed from this file.
  */
 
-package com.compdfkit.reactnative.example.pdf;
+package com.compdfkit.pdfviewer.pdf;
 
 import android.content.Intent;
 import android.net.Uri;

+ 2 - 1
android/app/src/main/java/com/compdfkit/reactnative/example/pdf/PDFReactPackage.java

@@ -7,10 +7,11 @@
  * This notice may not be removed from this file.
  */
 
-package com.compdfkit.reactnative.example.pdf;
+package com.compdfkit.pdfviewer.pdf;
 
 import androidx.annotation.NonNull;
 
+import com.compdfkit.pdfviewer.pdf.OpenPDFModule;
 import com.facebook.react.ReactPackage;
 import com.facebook.react.bridge.NativeModule;
 import com.facebook.react.bridge.ReactApplicationContext;

+ 1 - 1
ios/ComPDFKit_RN.xcodeproj/project.pbxproj

@@ -517,7 +517,7 @@
 					"-ObjC",
 					"-lc++",
 				);
-				PRODUCT_BUNDLE_IDENTIFIER = com.compdfkit.reactnative.example;
+				PRODUCT_BUNDLE_IDENTIFIER = com.compdfkit.pdfviewer;
 				PRODUCT_NAME = ComPDFKit_RN;
 				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
 				SUPPORTS_MACCATALYST = NO;

+ 2 - 2
ios/Podfile

@@ -31,8 +31,8 @@ target 'ComPDFKit_RN' do
   # Flags change depending on the env values.
   flags = get_default_flags()
 
-  pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '1.13.0'
-  pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '1.13.0'
+  pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
+  pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
 
   use_react_native!(
     :path => config[:reactNativePath],