View MainActivity.java
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 com.example.sessionmexamplelifecyclecalls; | |
import com.sessionm.api.SessionM; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.view.Menu; | |
public class MainActivity extends Activity { |
View ExampleAppDelegate.m
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
// | |
// ExampleAppDelegate.m | |
// MyApp | |
// | |
// | |
#import "ExampleAppDelegate.h" | |
#import "SessionM.h" | |
@implementation ExampleAppDelegate |
View MyClass.m
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 "SessionM.h" | |
@implementation MyClass | |
- (void)myAwesomeMethod { | |
SMAction(@"demo_action") | |
} | |
@end |
View MyViewController.m
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 "SMPortalButton.h" | |
@implementation MyViewController | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
SMPortalButton *portalButton=[SMPortalButton buttonWithType:UIButtonTypeSystem]; | |
[portalButton.button setTitle:@"Portal Button" forState:UIControlStateNormal]; | |
portalButton.frame = CGRectMake(40, 40, 100, 30); |
View AndroidManifest.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.sessionm.sample" | |
android:versionCode="1" | |
android:versionName="1.0.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="19" /> | |
<!-- SessionM NOTE: These permissions are required for SessionM --> | |
<uses-permission android:name="android.permission.INTERNET" /> |
View proguard.cfg
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
-dontwarn com.unity3d.player.** | |
-keep class com.sessionm.ui.** {*;} |
View MainActivity.java
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 test.com.sessionm.app; | |
import test.com.sessionm.R; | |
import com.sessionm.api.BaseActivity; | |
//Just extend the BaseActivity class. | |
//This will automatically make lifecycle calls for you. | |
public class MainActivity extends BaseActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
View MyClass.java
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 com.sessionm.example; | |
import com.sessionm.api.SessionM; | |
public class MyClass { | |
public void myAwesomeMethod() { | |
SessionM.getInstance().logAction("demo_action"); | |
} | |
} |
View PresentActivityActivity.java
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 ludia.sessionm; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; | |
import com.sessionm.api.ActivityListener; | |
import com.sessionm.api.BaseActivity; | |
import com.sessionm.api.SessionM; | |
import org.json.JSONException; | |
import org.json.JSONObject; |
View AndroidManifest.xml
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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="test.com.sessionm" | |
android:versionCode="15" | |
android:versionName="1.9.0 Beta" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="19" /> | |
<!-- Begin SessionM --> |
OlderNewer