Skip to content

Commit

Permalink
iOS, prepare for arm architecture
Browse files Browse the repository at this point in the history
Need arm46, armv7 and i386

Change-Id: Idd72ca070c98974cc31833839e8eaf64ab5ced03
  • Loading branch information
jan Iversen committed Jun 3, 2017
1 parent 73e64e2 commit a318fc4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
Expand Up @@ -442,6 +442,7 @@
baseConfigurationReference = 39B084E21E5F0A9600682A59 /* lo.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down Expand Up @@ -509,6 +510,7 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "$(ARCHS_STANDARD)";
};
name = Debug;
};
Expand All @@ -517,6 +519,7 @@
baseConfigurationReference = 39B084E21E5F0A9600682A59 /* lo.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand All @@ -536,7 +539,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down Expand Up @@ -578,13 +581,15 @@
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VALID_ARCHS = "$(ARCHS_STANDARD)";
};
name = Release;
};
397E09261E597BD8001374E0 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 39B084E21E5F0A9600682A59 /* lo.xcconfig */;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
Expand All @@ -603,14 +608,15 @@
SWIFT_OBJC_BRIDGING_HEADER = "LibreOfficeLight/lokit-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
VALID_ARCHS = i386;
VALID_ARCHS = "$(ARCHS_STANDARD)";
};
name = Debug;
};
397E09271E597BD8001374E0 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 39B084E21E5F0A9600682A59 /* lo.xcconfig */;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
Expand All @@ -629,7 +635,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "LibreOfficeLight/lokit-Bridging-Header.h";
SWIFT_VERSION = 3.0;
VALID_ARCHS = i386;
VALID_ARCHS = "$(ARCHS_STANDARD)";
};
name = Release;
};
Expand Down
Expand Up @@ -19,6 +19,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate

// MARK: - AppDelegate functions

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool
{
// called when started from another Application.
return true
}


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
Expand All @@ -31,6 +36,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate
defaults.set(applicationVersion, forKey: "application_version")
defaults.synchronize()

// start LibreOfficeKit
BridgeLOkit_Init(Bundle.main.bundlePath)

// Override point for customization after application launch.
return true
}
Expand Down Expand Up @@ -72,8 +80,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate

func applicationDidBecomeActive(_ application: UIApplication)
{
// start LibreOfficeKit
BridgeLOkit_Init(Bundle.main.bundlePath)
}


Expand Down
4 changes: 2 additions & 2 deletions ios/experimental/LibreOfficeLight/LibreOfficeLight/Info.plist
Expand Up @@ -138,11 +138,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.3</string>
<string>0.4.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2</string>
<string>1</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.business</string>
<key>LSMultipleInstancesProhibited</key>
Expand Down

0 comments on commit a318fc4

Please sign in to comment.