Skip to content

Commit 0bc3d41

Browse files
author
Thomas
committed
update dependencies, raise version
1 parent 7798986 commit 0bc3d41

6 files changed

Lines changed: 175 additions & 140 deletions

File tree

OpenDocumentReader.xcodeproj/project.pbxproj

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@
269269
E2F7ED4D220B54D600D63515 /* Resources */,
270270
F435F37405C0FE5E8503721A /* [CP] Embed Pods Frameworks */,
271271
E2C41D0F226DEF390049EF8E /* Run Script */,
272+
F8CA8E81987336E1DB902130 /* [CP] Copy Pods Resources */,
272273
);
273274
buildRules = (
274275
);
@@ -439,6 +440,23 @@
439440
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader-frameworks.sh\"\n";
440441
showEnvVarsInLog = 0;
441442
};
443+
F8CA8E81987336E1DB902130 /* [CP] Copy Pods Resources */ = {
444+
isa = PBXShellScriptBuildPhase;
445+
buildActionMask = 2147483647;
446+
files = (
447+
);
448+
inputFileListPaths = (
449+
"${PODS_ROOT}/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader-resources-${CONFIGURATION}-input-files.xcfilelist",
450+
);
451+
name = "[CP] Copy Pods Resources";
452+
outputFileListPaths = (
453+
"${PODS_ROOT}/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader-resources-${CONFIGURATION}-output-files.xcfilelist",
454+
);
455+
runOnlyForDeploymentPostprocessing = 0;
456+
shellPath = /bin/sh;
457+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader-resources.sh\"\n";
458+
showEnvVarsInLog = 0;
459+
};
442460
/* End PBXShellScriptBuildPhase section */
443461

444462
/* Begin PBXSourcesBuildPhase section */
@@ -586,7 +604,7 @@
586604
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
587605
CLANG_ENABLE_MODULES = YES;
588606
CODE_SIGN_STYLE = Automatic;
589-
CURRENT_PROJECT_VERSION = 39;
607+
CURRENT_PROJECT_VERSION = 40;
590608
DEFINES_MODULE = YES;
591609
DEVELOPMENT_TEAM = 5LS6X97G6J;
592610
ENABLE_BITCODE = NO;
@@ -598,7 +616,7 @@
598616
"$(inherited)",
599617
"@executable_path/Frameworks",
600618
);
601-
MARKETING_VERSION = 1.32;
619+
MARKETING_VERSION = 1.33;
602620
ONLY_ACTIVE_ARCH = YES;
603621
PRODUCT_BUNDLE_IDENTIFIER = at.tomtasche.reader.lite1;
604622
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
@@ -677,7 +695,7 @@
677695
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
678696
CLANG_ENABLE_MODULES = YES;
679697
CODE_SIGN_STYLE = Automatic;
680-
CURRENT_PROJECT_VERSION = 39;
698+
CURRENT_PROJECT_VERSION = 40;
681699
DEFINES_MODULE = YES;
682700
DEVELOPMENT_TEAM = 5LS6X97G6J;
683701
ENABLE_BITCODE = NO;
@@ -689,7 +707,7 @@
689707
"$(inherited)",
690708
"@executable_path/Frameworks",
691709
);
692-
MARKETING_VERSION = 1.32;
710+
MARKETING_VERSION = 1.33;
693711
PRODUCT_BUNDLE_IDENTIFIER = at.tomtasche.reader.lite1;
694712
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
695713
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
@@ -912,7 +930,7 @@
912930
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
913931
CLANG_ENABLE_MODULES = YES;
914932
CODE_SIGN_STYLE = Automatic;
915-
CURRENT_PROJECT_VERSION = 39;
933+
CURRENT_PROJECT_VERSION = 40;
916934
DEFINES_MODULE = YES;
917935
DEVELOPMENT_TEAM = 5LS6X97G6J;
918936
ENABLE_BITCODE = NO;
@@ -924,7 +942,7 @@
924942
"$(inherited)",
925943
"@executable_path/Frameworks",
926944
);
927-
MARKETING_VERSION = 1.32;
945+
MARKETING_VERSION = 1.33;
928946
ONLY_ACTIVE_ARCH = YES;
929947
PRODUCT_BUNDLE_IDENTIFIER = "at.tomtasche.reader$(BUNDLE_ID_SUFFIX)";
930948
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
@@ -947,7 +965,7 @@
947965
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
948966
CLANG_ENABLE_MODULES = YES;
949967
CODE_SIGN_STYLE = Automatic;
950-
CURRENT_PROJECT_VERSION = 39;
968+
CURRENT_PROJECT_VERSION = 40;
951969
DEFINES_MODULE = YES;
952970
DEVELOPMENT_TEAM = 5LS6X97G6J;
953971
ENABLE_BITCODE = NO;
@@ -959,7 +977,7 @@
959977
"$(inherited)",
960978
"@executable_path/Frameworks",
961979
);
962-
MARKETING_VERSION = 1.32;
980+
MARKETING_VERSION = 1.33;
963981
PRODUCT_BUNDLE_IDENTIFIER = "at.tomtasche.reader$(BUNDLE_ID_SUFFIX)";
964982
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
965983
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";

OpenDocumentReader/CoreWrapper.mm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ - (bool)translate:(NSString *)inputPath into:(NSString *)outputPath with:(NSStri
4040
odr::HtmlConfig config;
4141
config.editable = editable;
4242

43-
const char* passwordC = nullptr;
44-
if (password != nil) {
45-
passwordC = [password cStringUsingEncoding:NSUTF8StringEncoding];
43+
if (password == nil) {
44+
password = @"";
4645
}
4746

4847
auto inputPathC = [inputPath cStringUsingEncoding:NSUTF8StringEncoding];
@@ -51,7 +50,7 @@ - (bool)translate:(NSString *)inputPath into:(NSString *)outputPath with:(NSStri
5150
auto outputPathC = [outputPath cStringUsingEncoding:NSUTF8StringEncoding];
5251
auto outputPathCpp = std::string(outputPathC);
5352

54-
html = odr::OpenDocumentReader::html(inputPathCpp, [passwordC]() { return passwordC; }, outputPathCpp, config);
53+
html = odr::OpenDocumentReader::html(inputPathCpp, [password]() { return std::string([password UTF8String]); }, outputPathCpp, config);
5554

5655
NSMutableArray *pageNames = [[NSMutableArray alloc] init];
5756
NSMutableArray *pagePaths = [[NSMutableArray alloc] init];

0 commit comments

Comments
 (0)