Procházet zdrojové kódy

OPTION_AUTOMATIC_UPLOAD_ENABLE

Marino Faggiana před 8 roky
rodič
revize
a3f034be6c

+ 3 - 2
iOSClient/Brand/CCNextcloudConstant.h

@@ -33,10 +33,11 @@
  #define OPTION_CRYPTO_CLOUD_SYSTEM_DISABLE
  #define OPTION_OFFLINE_DISABLE
  #define OPTION_NOTIFICATION_PUSH_ENABLE
-
+ #define OPTION_AUTOMATIC_UPLOAD_ENABLE
+ 
  #define MENU_BRAND_ENABLE
  #define NO_REQUEST_LOGIN_URL
- */
+*/
 
 #define OPTION_OFFLINE_DISABLE
 

+ 23 - 0
iOSClient/Login/CCLogin.m

@@ -231,6 +231,29 @@
         
             // Add default account
             [CCCoreData addAccount:account url:self.baseUrl.text user:self.user.text password:self.password.text];
+            
+// ---------------------------------------
+//  *** DEFAULT OPTION ***
+// ---------------------------------------
+            
+#ifdef OPTION_AUTOMATIC_UPLOAD_ENABLE
+            
+            [CCCoreData setCameraUpload:YES activeAccount:account];
+            
+            // Default parameter
+            [CCCoreData setCameraUploadFolderName:nil activeAccount:account];
+            [CCCoreData setCameraUploadFolderPath:nil activeUrl:self.baseUrl.text activeAccount:account];
+            
+            [CCCoreData setCameraUploadPhoto:YES activeAccount:account];
+            [CCCoreData setCameraUploadDatePhoto:[NSDate date]];
+
+            [CCCoreData setCameraUploadVideo:YES activeAccount:account];
+            [CCCoreData setCameraUploadWWanVideo:YES activeAccount:account];
+            [CCCoreData setCameraUploadDateVideo:[NSDate date]];
+            
+            [CCCoreData setCameraUploadCreateSubfolderActiveAccount:YES activeAccount:account];
+#endif
+            
         }
         
         TableAccount *tableAccount = [CCCoreData setActiveAccount:account];

+ 10 - 10
iOSClient/Login/CCLogin.storyboard

@@ -75,13 +75,6 @@
                                     <constraint firstAttribute="width" constant="25" id="glL-CW-aF0"/>
                                 </constraints>
                             </imageView>
-                            <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="BpI-xK-1SU">
-                                <rect key="frame" x="112" y="30" width="167" height="120"/>
-                                <constraints>
-                                    <constraint firstAttribute="height" constant="120" id="E9d-5O-bto"/>
-                                    <constraint firstAttribute="width" constant="167" id="xwH-mh-yDU"/>
-                                </constraints>
-                            </imageView>
                             <textField opaque="NO" clipsSubviews="YES" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="https://nextcloud.yourdomain.com" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="szn-G7-5sK">
                                 <rect key="frame" x="50" y="158" width="273" height="30"/>
                                 <constraints>
@@ -122,6 +115,13 @@
                                     <action selector="handleToggleVisiblePassword:" destination="yj9-jo-WIn" eventType="touchUpInside" id="if0-s4-Gzt"/>
                                 </connections>
                             </button>
+                            <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="BpI-xK-1SU">
+                                <rect key="frame" x="72" y="28" width="229" height="120"/>
+                                <constraints>
+                                    <constraint firstAttribute="height" constant="120" id="E9d-5O-bto"/>
+                                    <constraint firstAttribute="width" constant="229" id="xwH-mh-yDU"/>
+                                </constraints>
+                            </imageView>
                         </subviews>
                         <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                         <constraints>
@@ -129,10 +129,10 @@
                             <constraint firstItem="fhk-o9-J0l" firstAttribute="top" secondItem="7q8-rl-x2M" secondAttribute="top" id="1oU-Kw-Rqv"/>
                             <constraint firstItem="1Gf-Bw-Nim" firstAttribute="leading" secondItem="Bv6-g3-l0M" secondAttribute="leadingMargin" constant="34" id="6Be-V2-eJc"/>
                             <constraint firstItem="szn-G7-5sK" firstAttribute="centerY" secondItem="s9o-RX-XeS" secondAttribute="centerY" constant="0.5" id="BR2-Vt-TiK"/>
-                            <constraint firstItem="BpI-xK-1SU" firstAttribute="top" secondItem="Bv6-g3-l0M" secondAttribute="top" constant="30" id="CRD-sA-WM7"/>
+                            <constraint firstItem="BpI-xK-1SU" firstAttribute="top" secondItem="Bv6-g3-l0M" secondAttribute="top" constant="28" id="CRD-sA-WM7"/>
                             <constraint firstItem="1Gf-Bw-Nim" firstAttribute="top" secondItem="szn-G7-5sK" secondAttribute="bottom" constant="8" id="GgI-rV-AyE"/>
                             <constraint firstItem="HQd-pF-3cE" firstAttribute="top" secondItem="jU7-Iw-XfU" secondAttribute="bottom" constant="11" id="GtN-Nl-Foz"/>
-                            <constraint firstAttribute="centerX" secondItem="BpI-xK-1SU" secondAttribute="centerX" constant="-8" id="IxG-UI-0vq"/>
+                            <constraint firstAttribute="centerX" secondItem="BpI-xK-1SU" secondAttribute="centerX" constant="1" id="IxG-UI-0vq"/>
                             <constraint firstItem="7q8-rl-x2M" firstAttribute="leading" secondItem="Bv6-g3-l0M" secondAttribute="leadingMargin" constant="-9" id="KdO-yl-JYn"/>
                             <constraint firstItem="jU7-Iw-XfU" firstAttribute="leading" secondItem="Bv6-g3-l0M" secondAttribute="leadingMargin" constant="34" id="M0m-7h-EkY"/>
                             <constraint firstItem="7q8-rl-x2M" firstAttribute="top" secondItem="4OF-5u-Hd1" secondAttribute="bottom" constant="13" id="M5y-ed-Z9b"/>
@@ -175,7 +175,7 @@
                 </viewController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="dCU-1X-uQw" userLabel="First Responder" sceneMemberID="firstResponder"/>
             </objects>
-            <point key="canvasLocation" x="3591" y="-1211"/>
+            <point key="canvasLocation" x="3589.5999999999999" y="-1211.2443778110946"/>
         </scene>
     </scenes>
     <resources>