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 { |
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 |
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 |
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); |
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" /> |
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.** | |
-dontwarn org.apache.http.** | |
-dontwarn android.net.http.AndroidHttpClient | |
-dontwarn com.google.android.gms.** | |
-dontwarn com.android.volley.** | |
-keep class com.sessionm.ui.** {*;} |
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) { |
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"); | |
} | |
} |
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; |
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"> | |
<!-- Begin SessionM --> | |
<!-- SessionM NOTE: These permissions are required for SessionM --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<!-- SessionM NOTE: These permissions are optional --> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
NewerOlder