Skip to content

Commit 64f460a

Browse files
authored
Remove build hack and update readme (#82)
1 parent 51e7374 commit 64f460a

9 files changed

Lines changed: 20 additions & 41 deletions

File tree

.github/workflows/ios_main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ jobs:
5555
-s build_type=Release
5656
-s "&:build_type=RelWithDebInfo"
5757
-s "odrcore/*:build_type=RelWithDebInfo"
58-
- name: conan patch
59-
run: bash conan/patch.sh
6058
6159
- name: run tests
6260
run: bundle exec fastlane tests

OpenDocumentReader.xcodeproj/project.pbxproj

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
};
302302
};
303303
buildConfigurationList = E2F7ED4A220B54D600D63515 /* Build configuration list for PBXProject "OpenDocumentReader" */;
304-
compatibilityVersion = "Xcode 11.0";
304+
compatibilityVersion = "Xcode 14.0";
305305
developmentRegion = en;
306306
hasScannedForEncodings = 0;
307307
knownRegions = (
@@ -553,7 +553,6 @@
553553
DEBUG_INFORMATION_FORMAT = dwarf;
554554
ENABLE_STRICT_OBJC_MSGSEND = YES;
555555
ENABLE_TESTABILITY = YES;
556-
ENABLE_USER_SCRIPT_SANDBOXING = YES;
557556
GCC_C_LANGUAGE_STANDARD = gnu11;
558557
GCC_DYNAMIC_NO_PIC = NO;
559558
GCC_NO_COMMON_BLOCKS = YES;
@@ -568,14 +567,12 @@
568567
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
569568
GCC_WARN_UNUSED_FUNCTION = YES;
570569
GCC_WARN_UNUSED_VARIABLE = YES;
571-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
572570
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
573571
MTL_FAST_MATH = YES;
574572
ONLY_ACTIVE_ARCH = YES;
575573
SDKROOT = iphoneos;
576574
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
577575
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
578-
TARGETED_DEVICE_FAMILY = "1,2";
579576
};
580577
name = "Debug Lite";
581578
};
@@ -597,7 +594,6 @@
597594
INFOPLIST_FILE = "OpenDocumentReader/Info-Lite.plist";
598595
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
599596
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
600-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
601597
LD_RUNPATH_SEARCH_PATHS = (
602598
"$(inherited)",
603599
"@executable_path/Frameworks",
@@ -609,7 +605,6 @@
609605
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
610606
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
611607
SWIFT_VERSION = 5.0;
612-
TARGETED_DEVICE_FAMILY = "1,2";
613608
};
614609
name = "Debug Lite";
615610
};
@@ -652,7 +647,6 @@
652647
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
653648
ENABLE_NS_ASSERTIONS = NO;
654649
ENABLE_STRICT_OBJC_MSGSEND = YES;
655-
ENABLE_USER_SCRIPT_SANDBOXING = YES;
656650
GCC_C_LANGUAGE_STANDARD = gnu11;
657651
GCC_NO_COMMON_BLOCKS = YES;
658652
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -661,13 +655,12 @@
661655
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
662656
GCC_WARN_UNUSED_FUNCTION = YES;
663657
GCC_WARN_UNUSED_VARIABLE = YES;
664-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
665658
MTL_ENABLE_DEBUG_INFO = NO;
666659
MTL_FAST_MATH = YES;
667660
SDKROOT = iphoneos;
668661
SWIFT_COMPILATION_MODE = wholemodule;
669662
SWIFT_OPTIMIZATION_LEVEL = "-O";
670-
TARGETED_DEVICE_FAMILY = "1,2";
663+
671664
VALIDATE_PRODUCT = YES;
672665
};
673666
name = "Release Lite";
@@ -690,7 +683,6 @@
690683
INFOPLIST_FILE = "OpenDocumentReader/Info-Lite.plist";
691684
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
692685
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
693-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
694686
LD_RUNPATH_SEARCH_PATHS = (
695687
"$(inherited)",
696688
"@executable_path/Frameworks",
@@ -700,7 +692,6 @@
700692
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
701693
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
702694
SWIFT_VERSION = 5.0;
703-
TARGETED_DEVICE_FAMILY = "1,2";
704695
};
705696
name = "Release Lite";
706697
};
@@ -720,7 +711,6 @@
720711
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
721712
PRODUCT_NAME = "$(TARGET_NAME)";
722713
SWIFT_VERSION = 5.0;
723-
TARGETED_DEVICE_FAMILY = "1,2";
724714
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
725715
};
726716
name = Debug;
@@ -741,7 +731,6 @@
741731
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
742732
PRODUCT_NAME = "$(TARGET_NAME)";
743733
SWIFT_VERSION = 5.0;
744-
TARGETED_DEVICE_FAMILY = "1,2";
745734
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
746735
};
747736
name = "Debug Lite";
@@ -762,7 +751,6 @@
762751
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
763752
PRODUCT_NAME = "$(TARGET_NAME)";
764753
SWIFT_VERSION = 5.0;
765-
TARGETED_DEVICE_FAMILY = "1,2";
766754
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
767755
};
768756
name = Release;
@@ -783,7 +771,6 @@
783771
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
784772
PRODUCT_NAME = "$(TARGET_NAME)";
785773
SWIFT_VERSION = 5.0;
786-
TARGETED_DEVICE_FAMILY = "1,2";
787774
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
788775
};
789776
name = "Release Lite";
@@ -827,7 +814,6 @@
827814
DEBUG_INFORMATION_FORMAT = dwarf;
828815
ENABLE_STRICT_OBJC_MSGSEND = YES;
829816
ENABLE_TESTABILITY = YES;
830-
ENABLE_USER_SCRIPT_SANDBOXING = YES;
831817
GCC_C_LANGUAGE_STANDARD = gnu11;
832818
GCC_DYNAMIC_NO_PIC = NO;
833819
GCC_NO_COMMON_BLOCKS = YES;
@@ -842,14 +828,12 @@
842828
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
843829
GCC_WARN_UNUSED_FUNCTION = YES;
844830
GCC_WARN_UNUSED_VARIABLE = YES;
845-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
846831
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
847832
MTL_FAST_MATH = YES;
848833
ONLY_ACTIVE_ARCH = YES;
849834
SDKROOT = iphoneos;
850835
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
851836
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
852-
TARGETED_DEVICE_FAMILY = "1,2";
853837
};
854838
name = Debug;
855839
};
@@ -892,7 +876,6 @@
892876
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
893877
ENABLE_NS_ASSERTIONS = NO;
894878
ENABLE_STRICT_OBJC_MSGSEND = YES;
895-
ENABLE_USER_SCRIPT_SANDBOXING = YES;
896879
GCC_C_LANGUAGE_STANDARD = gnu11;
897880
GCC_NO_COMMON_BLOCKS = YES;
898881
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -901,13 +884,12 @@
901884
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
902885
GCC_WARN_UNUSED_FUNCTION = YES;
903886
GCC_WARN_UNUSED_VARIABLE = YES;
904-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
905887
MTL_ENABLE_DEBUG_INFO = NO;
906888
MTL_FAST_MATH = YES;
907889
SDKROOT = iphoneos;
908890
SWIFT_COMPILATION_MODE = wholemodule;
909891
SWIFT_OPTIMIZATION_LEVEL = "-O";
910-
TARGETED_DEVICE_FAMILY = "1,2";
892+
911893
VALIDATE_PRODUCT = YES;
912894
};
913895
name = Release;
@@ -930,7 +912,6 @@
930912
INFOPLIST_FILE = OpenDocumentReader/Info.plist;
931913
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
932914
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
933-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
934915
LD_RUNPATH_SEARCH_PATHS = (
935916
"$(inherited)",
936917
"@executable_path/Frameworks",
@@ -942,7 +923,6 @@
942923
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
943924
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
944925
SWIFT_VERSION = 5.0;
945-
TARGETED_DEVICE_FAMILY = "1,2";
946926
};
947927
name = Debug;
948928
};
@@ -964,7 +944,6 @@
964944
INFOPLIST_FILE = OpenDocumentReader/Info.plist;
965945
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
966946
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
967-
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
968947
LD_RUNPATH_SEARCH_PATHS = (
969948
"$(inherited)",
970949
"@executable_path/Frameworks",
@@ -974,7 +953,6 @@
974953
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
975954
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
976955
SWIFT_VERSION = 5.0;
977-
TARGETED_DEVICE_FAMILY = "1,2";
978956
};
979957
name = Release;
980958
};

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ It's Android's first OpenOffice Document Reader... for iOS!
33

44
## Setup
55
1. run "pod install"
6-
2. run "bash build-simulator.sh" or "bash build-device.sh"
6+
2. run "bash conan/setup-all.sh"
77
3. open workspace in Xcode

conan/patch.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

conan/setup-all.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,3 @@ for arch in "arm64" "x64"; do
2929
-o "configuration=${configuration}"
3030
done
3131
done
32-
33-
bash conan/patch.sh

configs/debug-lite.xcconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.debug lite.xcconfig"
22

3+
// somehow the Pods definition of this variable is harmful to the conan defintition
4+
// it looks like the one from Pods is not crucial so we can drop it
5+
LIBRARY_SEARCH_PATHS =
6+
37
#include "conan-output/conan_config.xcconfig"

configs/debug.xcconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.debug.xcconfig"
22

3+
// somehow the Pods definition of this variable is harmful to the conan defintition
4+
// it looks like the one from Pods is not crucial so we can drop it
5+
LIBRARY_SEARCH_PATHS =
6+
37
#include "conan-output/conan_config.xcconfig"

configs/release-lite.xcconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.release lite.xcconfig"
22

3+
// somehow the Pods definition of this variable is harmful to the conan defintition
4+
// it looks like the one from Pods is not crucial so we can drop it
5+
LIBRARY_SEARCH_PATHS =
6+
37
#include "conan-output/conan_config.xcconfig"

configs/release.xcconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.release.xcconfig"
22

3+
// somehow the Pods definition of this variable is harmful to the conan defintition
4+
// it looks like the one from Pods is not crucial so we can drop it
5+
LIBRARY_SEARCH_PATHS =
6+
37
#include "conan-output/conan_config.xcconfig"

0 commit comments

Comments
 (0)