Skip to content

Commit

Permalink
Remove build hack and update readme (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand authored Jun 30, 2024
1 parent 51e7374 commit 64f460a
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 41 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ios_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ jobs:
-s build_type=Release
-s "&:build_type=RelWithDebInfo"
-s "odrcore/*:build_type=RelWithDebInfo"
- name: conan patch
run: bash conan/patch.sh
- name: run tests
run: bundle exec fastlane tests
Expand Down
28 changes: 3 additions & 25 deletions OpenDocumentReader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
};
};
buildConfigurationList = E2F7ED4A220B54D600D63515 /* Build configuration list for PBXProject "OpenDocumentReader" */;
compatibilityVersion = "Xcode 11.0";
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -553,7 +553,6 @@
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand All @@ -568,14 +567,12 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = "Debug Lite";
};
Expand All @@ -597,7 +594,6 @@
INFOPLIST_FILE = "OpenDocumentReader/Info-Lite.plist";
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -609,7 +605,6 @@
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = "Debug Lite";
};
Expand Down Expand Up @@ -652,7 +647,6 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -661,13 +655,12 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";

VALIDATE_PRODUCT = YES;
};
name = "Release Lite";
Expand All @@ -690,7 +683,6 @@
INFOPLIST_FILE = "OpenDocumentReader/Info-Lite.plist";
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -700,7 +692,6 @@
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = "Release Lite";
};
Expand All @@ -720,7 +711,6 @@
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
};
name = Debug;
Expand All @@ -741,7 +731,6 @@
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
};
name = "Debug Lite";
Expand All @@ -762,7 +751,6 @@
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
};
name = Release;
Expand All @@ -783,7 +771,6 @@
PRODUCT_BUNDLE_IDENTIFIER = app.opendocument.OpenDocumentReaderTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenDocumentReader.app/OpenDocumentReader";
};
name = "Release Lite";
Expand Down Expand Up @@ -827,7 +814,6 @@
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand All @@ -842,14 +828,12 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
Expand Down Expand Up @@ -892,7 +876,6 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -901,13 +884,12 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";

VALIDATE_PRODUCT = YES;
};
name = Release;
Expand All @@ -930,7 +912,6 @@
INFOPLIST_FILE = OpenDocumentReader/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -942,7 +923,6 @@
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
Expand All @@ -964,7 +944,6 @@
INFOPLIST_FILE = OpenDocumentReader/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "OpenDocument Reader";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -974,7 +953,6 @@
PRODUCT_NAME = "$(BUNDLE_DISPLAY_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = OpenDocumentReader/BridgingHeader.h;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ It's Android's first OpenOffice Document Reader... for iOS!

## Setup
1. run "pod install"
2. run "bash build-simulator.sh" or "bash build-device.sh"
2. run "bash conan/setup-all.sh"
3. open workspace in Xcode
11 changes: 0 additions & 11 deletions conan/patch.sh

This file was deleted.

2 changes: 0 additions & 2 deletions conan/setup-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ for arch in "arm64" "x64"; do
-o "configuration=${configuration}"
done
done

bash conan/patch.sh
4 changes: 4 additions & 0 deletions configs/debug-lite.xcconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.debug lite.xcconfig"

// somehow the Pods definition of this variable is harmful to the conan defintition
// it looks like the one from Pods is not crucial so we can drop it
LIBRARY_SEARCH_PATHS =

#include "conan-output/conan_config.xcconfig"
4 changes: 4 additions & 0 deletions configs/debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.debug.xcconfig"

// somehow the Pods definition of this variable is harmful to the conan defintition
// it looks like the one from Pods is not crucial so we can drop it
LIBRARY_SEARCH_PATHS =

#include "conan-output/conan_config.xcconfig"
4 changes: 4 additions & 0 deletions configs/release-lite.xcconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.release lite.xcconfig"

// somehow the Pods definition of this variable is harmful to the conan defintition
// it looks like the one from Pods is not crucial so we can drop it
LIBRARY_SEARCH_PATHS =

#include "conan-output/conan_config.xcconfig"
4 changes: 4 additions & 0 deletions configs/release.xcconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include "Pods/Target Support Files/Pods-OpenDocumentReader/Pods-OpenDocumentReader.release.xcconfig"

// somehow the Pods definition of this variable is harmful to the conan defintition
// it looks like the one from Pods is not crucial so we can drop it
LIBRARY_SEARCH_PATHS =

#include "conan-output/conan_config.xcconfig"

0 comments on commit 64f460a

Please sign in to comment.