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
// The Auth0 client, initialized in configureClient() | |
let auth0 = null; | |
/** | |
* Starts the authentication flow | |
*/ | |
const login = async (targetUrl) => { | |
try { | |
console.log("Logging in", targetUrl); |
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
import Foundation | |
struct ClosedRange { | |
let lowerEndpoint: Int | |
let upperEndpoint: Int | |
init?(lowerEndpoint: Int, upperEndpoint: Int) { | |
guard lowerEndpoint < upperEndpoint else { return nil } | |
self.lowerEndpoint = lowerEndpoint | |
self.upperEndpoint = upperEndpoint |
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
#import "GADBannerView.h" | |
// Google AdMob | |
static NSString *const ADMOB_ID = @"YOUR_ADMOB_ID"; | |
static NSString *const ADMOB_IPAD_ID = @"YOUR_ADMOB_ID"; | |
@interface GADViewController () <GADBannerViewDelegate> | |
@property (weak, nonatomic) IBOutlet GADBannerView *adBannerView; |
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
@implementation UIViewController (Analytics) | |
- (void)startScreen:(NSString*)screenName | |
{ | |
// Google Analytics | |
id tracker = [[GAI sharedInstance] defaultTracker]; | |
[tracker set:kGAIScreenName value:screenName]; | |
[tracker send:[[GAIDictionaryBuilder createAppView] build]]; | |
} |
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
package jp.sample.core; | |
import android.app.Application; | |
import android.content.Context; | |
/** | |
* . | |
*/ | |
public class App extends Application { |