ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj                
         |   40 ++--------
 
ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme
   |    4 -
 
ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme
 |    4 -
 ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift                   
         |    2 
 ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift                 
         |    6 -
 ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift               
         |    2 
 ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift               
         |    2 
 7 files changed, 17 insertions(+), 43 deletions(-)

New commits:
commit ac65efa1cff5c3ae763c24d0f1340617625e3fbc
Author: jan Iversen <j...@libreoffice.org>
Date:   Mon Apr 2 12:27:13 2018 +0200

    iOS, update source to xcode 9.3 swift 4.1
    
    Change-Id: I68464a213303ebe7dd850659031baf4cd7bdfa73

diff --git a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj 
b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj
index 48a6475acad0..67e33800b54a 100644
--- a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj
+++ b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj
@@ -97,19 +97,10 @@
                3992D8591E5B762A00BEA987 /* DocumentController.swift */ = {isa 
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; 
name = DocumentController.swift; path = 
LibreOfficeLight/DocumentController.swift; sourceTree = SOURCE_ROOT; };
                399648461E5B87DC00E73E83 /* ViewProperties.swift */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name 
= ViewProperties.swift; path = LibreOfficeLight/ViewProperties.swift; 
sourceTree = SOURCE_ROOT; };
                39B092501E5F3DEA00682A59 /* LibreOfficeLight-Prefix.pch */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; 
path = "LibreOfficeLight-Prefix.pch"; sourceTree = "<group>"; };
+               39B4245D2060FB2300347588 /* ucbhelper.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = ucbhelper.cxx; path = ../../unotools/source/ucbhelper/ucbhelper.cxx; 
sourceTree = "<group>"; };
                39E950521FC9842000D82C49 /* source */ = {isa = 
PBXFileReference; lastKnownFileType = folder; name = source; path = ../source; 
sourceTree = "<group>"; };
                39EE81531FA644E800B73AB8 /* Info.plist */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = 
Info.plist; sourceTree = "<group>"; };
                39EF4E2E1FA500C9001914AC /* PropertiesController.swift */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = 
sourcecode.swift; path = PropertiesController.swift; sourceTree = "<group>"; };
-               39FD89C9204E87E900E7179F /* except.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = except.cxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx"; sourceTree = 
"<group>"; };
-               39FD89D8204E8EEE00E7179F /* call.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = call.cxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/call.cxx"; sourceTree = 
"<group>"; };
-               39FD89D9204E8EEE00E7179F /* abi.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = abi.cxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx"; sourceTree = 
"<group>"; };
-               39FD89DA204E8EEE00E7179F /* uno2cpp.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = uno2cpp.cxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/uno2cpp.cxx"; sourceTree = 
"<group>"; };
-               39FD89DB204E8EEE00E7179F /* share.hxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name 
= share.hxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx"; sourceTree = 
"<group>"; };
-               39FD89DC204E8EEE00E7179F /* call.hxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name 
= call.hxx; path = "../../bridges/source/cpp_uno/gcc3_macosx_x86-64/call.hxx"; 
sourceTree = "<group>"; };
-               39FD89DD204E8EEE00E7179F /* abi.hxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name 
= abi.hxx; path = "../../bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.hxx"; 
sourceTree = "<group>"; };
-               39FD89DE204E8EEE00E7179F /* callvirtualmethod.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = callvirtualmethod.cxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx"; 
sourceTree = "<group>"; };
-               39FD89DF204E8EEF00E7179F /* cpp2uno.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = cpp2uno.cxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx"; sourceTree = 
"<group>"; };
-               39FD89E0204E8EEF00E7179F /* callvirtualmethod.hxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name 
= callvirtualmethod.hxx; path = 
"../../bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.hxx"; 
sourceTree = "<group>"; };
                39FD89E6204EBCB900E7179F /* exc_thrower.cxx */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; 
name = exc_thrower.cxx; path = ../../cppuhelper/source/exc_thrower.cxx; 
sourceTree = "<group>"; };
                FC31D01D2012F65500E7F402 /* DocumentHolder.swift */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.swift; path = 
DocumentHolder.swift; sourceTree = "<group>"; };
                FC31D01F2012F6D300E7F402 /* RenderCache.swift */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.swift; path = 
RenderCache.swift; sourceTree = "<group>"; };
@@ -158,7 +149,7 @@
                                39514E012057DC92005599D0 /* gcc3_ios */,
                                39514DFF2057DC55005599D0 /* shared */,
                                39FD89E6204EBCB900E7179F /* exc_thrower.cxx */,
-                               39FD89CD204E8E5E00E7179F /* sim */,
+                               39B4245D2060FB2300347588 /* ucbhelper.cxx */,
                                39E950521FC9842000D82C49 /* source */,
                        );
                        name = extra;
@@ -236,23 +227,6 @@
                        name = Resources;
                        sourceTree = SOURCE_ROOT;
                };
-               39FD89CD204E8E5E00E7179F /* sim */ = {
-                       isa = PBXGroup;
-                       children = (
-                               39FD89D9204E8EEE00E7179F /* abi.cxx */,
-                               39FD89DD204E8EEE00E7179F /* abi.hxx */,
-                               39FD89D8204E8EEE00E7179F /* call.cxx */,
-                               39FD89DC204E8EEE00E7179F /* call.hxx */,
-                               39FD89DE204E8EEE00E7179F /* 
callvirtualmethod.cxx */,
-                               39FD89E0204E8EEF00E7179F /* 
callvirtualmethod.hxx */,
-                               39FD89DF204E8EEF00E7179F /* cpp2uno.cxx */,
-                               39FD89DB204E8EEE00E7179F /* share.hxx */,
-                               39FD89DA204E8EEE00E7179F /* uno2cpp.cxx */,
-                               39FD89C9204E87E900E7179F /* except.cxx */,
-                       );
-                       name = sim;
-                       sourceTree = "<group>";
-               };
                FCC2E3F52004A01400CEB504 /* LOKit */ = {
                        isa = PBXGroup;
                        children = (
@@ -296,7 +270,7 @@
                        isa = PBXProject;
                        attributes = {
                                LastSwiftUpdateCheck = 0820;
-                               LastUpgradeCheck = 0920;
+                               LastUpgradeCheck = 0930;
                                ORGANIZATIONNAME = jani;
                                TargetAttributes = {
                                        397E08F91E597BD8001374E0 = {
@@ -445,6 +419,7 @@
                                CLANG_WARN_BOOL_CONVERSION = YES;
                                CLANG_WARN_COMMA = YES;
                                CLANG_WARN_CONSTANT_CONVERSION = YES;
+                               CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 
YES;
                                CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
                                CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
                                CLANG_WARN_EMPTY_BODY = YES;
@@ -452,6 +427,7 @@
                                CLANG_WARN_INFINITE_RECURSION = YES;
                                CLANG_WARN_INT_CONVERSION = YES;
                                CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+                               CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
                                CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
                                CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
                                CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -480,7 +456,7 @@
                                GCC_WARN_UNUSED_FUNCTION = YES;
                                GCC_WARN_UNUSED_VARIABLE = YES;
                                HEADER_SEARCH_PATHS = "$(inherited)";
-                               IPHONEOS_DEPLOYMENT_TARGET = 11.2;
+                               IPHONEOS_DEPLOYMENT_TARGET = 11.3;
                                LD_MAP_FILE_PATH = "";
                                LIBRARY_SEARCH_PATHS = 
"$PROJECT_DIR/../generated/debug/**";
                                MACH_O_TYPE = mh_execute;
@@ -512,6 +488,7 @@
                                CLANG_WARN_BOOL_CONVERSION = YES;
                                CLANG_WARN_COMMA = YES;
                                CLANG_WARN_CONSTANT_CONVERSION = YES;
+                               CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 
YES;
                                CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
                                CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
                                CLANG_WARN_EMPTY_BODY = YES;
@@ -519,6 +496,7 @@
                                CLANG_WARN_INFINITE_RECURSION = YES;
                                CLANG_WARN_INT_CONVERSION = YES;
                                CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+                               CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
                                CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
                                CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
                                CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -542,7 +520,7 @@
                                GCC_WARN_UNUSED_FUNCTION = YES;
                                GCC_WARN_UNUSED_VARIABLE = YES;
                                HEADER_SEARCH_PATHS = "$(inherited)";
-                               IPHONEOS_DEPLOYMENT_TARGET = 11.2;
+                               IPHONEOS_DEPLOYMENT_TARGET = 11.3;
                                LD_MAP_FILE_PATH = "";
                                LIBRARY_SEARCH_PATHS = 
"$PROJECT_DIR/../generated/release/**";
                                MACH_O_TYPE = mh_execute;
diff --git 
a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme
 
b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme
index 676048c6e6d7..450c96e3b6ba 100644
--- 
a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme
+++ 
b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   LastUpgradeVersion = "0920"
+   LastUpgradeVersion = "0930"
    version = "1.3">
    <BuildAction
       parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
       buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      language = ""
       shouldUseLaunchSchemeArgsEnv = "YES">
       <Testables>
       </Testables>
@@ -46,7 +45,6 @@
       buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      language = ""
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
       ignoresPersistentStateOnLaunch = "NO"
diff --git 
a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme
 
b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme
index 4861ceef6913..9c3d62de88a1 100644
--- 
a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme
+++ 
b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   LastUpgradeVersion = "0920"
+   LastUpgradeVersion = "0930"
    version = "1.3">
    <BuildAction
       parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
       buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      language = ""
       shouldUseLaunchSchemeArgsEnv = "YES">
       <Testables>
       </Testables>
@@ -46,7 +45,6 @@
       buildConfiguration = "Release"
       selectedDebuggerIdentifier = ""
       selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
-      language = ""
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
       ignoresPersistentStateOnLaunch = "NO"
diff --git a/ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift 
b/ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift
index 724a08d42f02..615c145fe385 100644
--- a/ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift
+++ b/ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift
@@ -107,7 +107,7 @@ open class ButtonList: UIView
 
     public var buttons: [UIButton]
     {
-        return self.subviews.flatMap({ $0 as? UIButton })
+        return self.subviews.compactMap({ $0 as? UIButton })
     }
 
     open override func layoutSubviews()
diff --git a/ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift 
b/ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift
index e9c554b31646..af192249bc92 100755
--- a/ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift
+++ b/ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift
@@ -223,13 +223,13 @@ class DocumentController: UIViewController, MenuDelegate, 
UIDocumentBrowserViewC
         case 4: // Close...
                 doClose()
 
-        case 4: // Save as...
+        case 5: // Save as...
                 doSaveAs()
 
-        case 5: // Save as PDF...
+        case 6: // Save as PDF...
                 doSaveAsPDF()
 
-        case 6: // Print...
+        case 7: // Print...
                 startPrint()
 
         default: // should not happen
diff --git a/ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift 
b/ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift
index d6b2b94c668d..16bc35c0a0ac 100644
--- a/ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift
+++ b/ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift
@@ -43,7 +43,7 @@ public class DocumentOverlaysView: UIView
 
         if let srs = searchResults.searchResultSelection
         {
-            let allTheRects = srs.flatMap { $0.rectsAsCGRects }
+            let allTheRects = srs.compactMap { $0.rectsAsCGRects }
                 .flatMap { $0 }
                 .map { documentTiledView.twipsToPixels(rect: $0) }
 
diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift 
b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift
index 0871c678dcaa..cfc2cb678367 100644
--- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift
+++ b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift
@@ -254,7 +254,7 @@ public func decodeRects(_ payload: String?) -> [CGRect]?
     var ret = [CGRect]()
     for rectStr in pl.split(separator: ";")
     {
-        let coords = rectStr.split(separator: ",").flatMap { 
Double($0.trimmingCharacters(in: .whitespacesAndNewlines)) }
+        let coords = rectStr.split(separator: ",").compactMap { 
Double($0.trimmingCharacters(in: .whitespacesAndNewlines)) }
         if coords.count == 4
         {
             let rect = CGRect(x: coords[0],
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to