Просмотр исходного кода

Ultimo AWS notification end-point

Hector Carrion 4 лет назад
Родитель
Сommit
08f4289f11

+ 1
- 1
EncuestaMarle/AppDelegate.swift Просмотреть файл

@@ -17,7 +17,7 @@ import ResearchKit
17 17
 @UIApplicationMain
18 18
 class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
19 19
 
20
-    let SNSPlatformApplicationArn = "arn:aws:sns:us-east-1:227586183436:app/APNS_SANDBOX/MARLE_iOS"
20
+    let SNSPlatformApplicationArn = "arn:aws:sns:us-east-1:227586183436:app/APNS/Tania-iOS-2020-NEW"
21 21
     
22 22
     var containerViewController: ResearchContainerViewController? {
23 23
         return window?.rootViewController as? ResearchContainerViewController

Двоичные данные
EncuestaMarle/Assets.xcassets/appstore.png Просмотреть файл


+ 5
- 5
EncuestaMarle/Base.lproj/Main.storyboard Просмотреть файл

@@ -1,9 +1,9 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="VBd-I7-AF1">
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="VBd-I7-AF1">
3 3
     <device id="retina5_5" orientation="portrait" appearance="light"/>
4 4
     <dependencies>
5 5
         <deployment identifier="iOS"/>
6
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
7 7
         <capability name="Named colors" minToolsVersion="9.0"/>
8 8
         <capability name="Safe area layout guides" minToolsVersion="9.0"/>
9 9
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@@ -153,7 +153,7 @@
153 153
                                     <action selector="joinButtonTapped:" destination="w49-Mx-cg8" eventType="touchUpInside" id="rRA-lm-n6W"/>
154 154
                                 </connections>
155 155
                             </button>
156
-                            <textView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="Fb5-jH-gVK">
156
+                            <textView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" editable="NO" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fb5-jH-gVK">
157 157
                                 <rect key="frame" x="20" y="217" width="374" height="185"/>
158 158
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
159 159
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
@@ -164,7 +164,7 @@ To log-in to a previously registered account tap Recover Account above.</string>
164 164
                                 <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
165 165
                                 <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
166 166
                             </textView>
167
-                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" text="Welcome to Tania" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="gEj-a4-kWk">
167
+                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" editable="NO" text="Welcome to Tania" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gEj-a4-kWk">
168 168
                                 <rect key="frame" x="20" y="114" width="374" height="50"/>
169 169
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
170 170
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
@@ -172,7 +172,7 @@ To log-in to a previously registered account tap Recover Account above.</string>
172 172
                                 <fontDescription key="fontDescription" style="UICTFontTextStyleTitle0"/>
173 173
                                 <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
174 174
                             </textView>
175
-                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" text="Momentary Assesment Made Simple" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="0BG-sB-Fdn">
175
+                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" editable="NO" text="Momentary Assesment Made Simple" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0BG-sB-Fdn">
176 176
                                 <rect key="frame" x="20" y="163" width="374" height="30"/>
177 177
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
178 178
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>

+ 14
- 14
EncuestaMarle/OnboardingViewController.swift Просмотреть файл

@@ -433,20 +433,20 @@ extension OnboardingViewController : ORKTaskViewControllerDelegate {
433 433
                     
434 434
                     // MARK: Restore PDF here
435 435
                     
436
-                    let decodedString = Data(base64Encoded: response_r)
437
-                    var docURL = (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)).last as NSURL?
438
-                    docURL = docURL?.appendingPathComponent("ConsentDocument.pdf") as NSURL?
439
-                    
440
-                    do {
441
-                        try decodedString?.write(to:docURL! as URL)
442
-                        print("PDF written to disk from recovery ✅")
443
-                        print(docURL! as URL)
444
-                        
445
-                    } catch let error {
446
-                        print("❌")
447
-                        print(error.localizedDescription)
448
-                        
449
-                    }
436
+//                    let decodedString = Data(base64Encoded: response_r)
437
+//                    var docURL = (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)).last as NSURL?
438
+//                    docURL = docURL?.appendingPathComponent("ConsentDocument.pdf") as NSURL?
439
+//
440
+//                    do {
441
+//                        try decodedString?.write(to:docURL! as URL)
442
+//                        print("PDF written to disk from recovery ✅")
443
+//                        print(docURL! as URL)
444
+//
445
+//                    } catch let error {
446
+//                        print("❌")
447
+//                        print(error.localizedDescription)
448
+//
449
+//                    }
450 450
                     
451 451
                     
452 452
                     performSegue(withIdentifier: "unwindToStudy", sender: nil)