This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Utility functions for Entry Requirement | |
*/ | |
class EntryRequirement { | |
static types () { | |
return { | |
entryResident: 0, | |
entryForeigner: 1, | |
transitAllowed: 2, | |
testOnArrival: 3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Foundation; | |
using SitataCore; | |
using UIKit; | |
using UserNotifications; | |
namespace SitataQs | |
{ | |
// The UIApplicationDelegate for the application. This class is responsible for launching the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// application class | |
namespace YOUR_NAMESPACE { | |
[Application] | |
class YourApp : Application { | |
private static SitataGui MySitataGui { get; set; } | |
public YourApp( IntPtr handle, JniHandleOwnership transfer ) : base( handle, transfer ) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Service class to obtain push notification token | |
// | |
// | |
import com.sitata.sdk.controller.SitataController; | |
public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService { | |
private static final String TAG = "MyFirebaseIIDService"; | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) | |
{ | |
// do some stuff | |
// check if launched by push tap | |
if (launchOptions != null && launchOptions[UIApplication.LaunchOptionsRemoteNotificationKey] != null) | |
{ | |
// re-using remote notification logic here for when app loads after user | |
// has interacted with remote notification from tray | |
this.DidReceiveRemoteNotification(application, launchOptions, (UIBackgroundFetchResult result) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unzip -vl /Users/astjohn/Development/sitata/mobile/sdk/sdk-xamarin-bindings-ios/SitataCore.iOS/obj/Debug/SitataCore.framework | |
Archive: /Users/astjohn/Development/sitata/mobile/sdk/sdk-xamarin-bindings-ios/SitataCore.iOS/obj/Debug/SitataCore.framework | |
Length Method Size Cmpr Date Time CRC-32 Name | |
-------- ------ ------- ---- ---------- ----- -------- ---- | |
6148 Defl:N 285 95% 09-28-2017 15:33 f085dfa0 .DS_Store | |
0 Stored 0 0% 09-28-2017 15:33 00000000 GooglePlaces.bundle/ | |
0 Stored 0 0% 09-28-2017 15:32 00000000 GooglePlaces.bundle/ar.lproj/ | |
703 Defl:N 457 35% 09-28-2017 15:32 99f2f526 GooglePlaces.bundle/ar.lproj/GooglePlaces.strings | |
0 Stored 0 0% 09-28-2017 15:32 00000000 GooglePlaces.bundle/ca.lproj/ | |
698 Defl:N 466 33% 09-28-2017 15:32 d3252a6c GooglePlaces.bundle/ca.lproj/GooglePlaces.strings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Microsoft (R) Build Engine version 15.3.0.0 (d15.3/17f02c2 Thu Jul 20 17:17:06 EDT 2017) for Mono | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/MSBuild.dll /verbosity:diag SitataCore.iOS.csproj | |
Build started 2017-09-29 2:13:48 PM. | |
Environment at start of build: | |
COLORTERM = truecolor | |
rvm_bin_path = /Users/astjohn/.rvm/bin | |
LOGNAME = astjohn | |
CLICOLOR = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ unzip -vl /Users/astjohn/Development/sitata/mobile/sdk/sdk-xamarin-bindings-ios/demo/SitataQs/obj/iPhoneSimulator/Release/mtouch-cache/SitataCore.framework.zip | |
Archive: /Users/astjohn/Development/sitata/mobile/sdk/sdk-xamarin-bindings-ios/demo/SitataQs/obj/iPhoneSimulator/Release/mtouch-cache/SitataCore.framework.zip | |
Length Method Size Cmpr Date Time CRC-32 Name | |
-------- ------ ------- ---- ---------- ----- -------- ---- | |
0 Stored 0 0% 09-28-2017 15:33 00000000 Headers/ | |
1178 Defl:N 366 69% 09-28-2017 15:33 87ea032d Headers/SitataCore-umbrella.h | |
960 Defl:N 413 57% 09-28-2017 15:17 bed6fc41 Headers/STASDKApiAlert.h | |
546 Defl:N 301 45% 09-28-2017 15:17 4f396f19 Headers/STASDKApiCountry.h | |
1307 Defl:N 369 72% 09-28-2017 15:17 389dfb71 Headers/STASDKApiHealth.h | |
459 Defl:N 274 40% 09-28-2017 15:32 f51eec09 Headers/STASDKApiMisc.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example coffeescript | |
_initialize_stomp: -> | |
@stomp_client.connect(null, null, (response) => | |
console.log "STOMP CONNECT", response | |
@stomp_client.subscribe("/trips/#{@trip_id}/travel_package", (message) -> | |
console.log "SUBSCRIBED", message | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /spec/support/authentication.rb | |
# sign in methods to use in a before block | |
# you will then have access to the corresponding account variable such as '@user' | |
# or '@admin' throughout your test suite | |
# sign in a user | |
def sign_in_user(user=nil) | |
sign_out_all | |
@user = user || FactoryGirl.create(:user_w_trip) |
NewerOlder