File tree 2 files changed +23
-4
lines changed
2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,19 @@ export UNITY_LIBS
6
6
ANDROID_SDK_ROOT=" /kankado/dev/tools/android-sdk-macosx"
7
7
export ANDROID_SDK_ROOT
8
8
9
- BOOTCLASSPATH=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib
9
+ JDK_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
10
+ export JDK_HOME
11
+
12
+ BOOTCLASSPATH=$JDK_HOME /jre/lib
10
13
export BOOTCLASSPATH
14
+
11
15
CLASSPATH=$UNITY_LIBS :$ANDROID_SDK_ROOT /platforms/android-23/android.jar
12
16
export CLASSPATH
13
17
14
18
echo " Compiling ..."
15
19
echo $BOOTCLASSPATH
16
20
echo $CLASSPATH
17
- javac * .java -bootclasspath $BOOTCLASSPATH -classpath $CLASSPATH -d . -target 1.7 -source 1.7
21
+ $JDK_HOME /bin/ javac * .java -bootclasspath $BOOTCLASSPATH -classpath $CLASSPATH -d .
18
22
19
23
echo " Manifest-Version: 1.0" > MANIFEST.MF
20
24
Original file line number Diff line number Diff line change 1
1
using UnityEngine ;
2
2
using System . Collections ;
3
3
using System . Collections . Generic ;
4
+ using System . Runtime . InteropServices ;
4
5
5
6
public class UnityDeeplinks : MonoBehaviour {
6
7
8
+ #if UNITY_IOS
9
+ [ DllImport ( "__Internal" ) ]
10
+ private static extern void UnityDeeplinks_init ( string gameObject = null , string deeplinkMethod = null ) ;
11
+ #endif
12
+
7
13
// Use this for initialization
8
14
void Start ( ) {
9
-
15
+ #if UNITY_IOS
16
+ if ( Application . platform == RuntimePlatform . IPhonePlayer ) {
17
+ UnityDeeplinks_init ( gameObject . name ) ;
18
+ }
19
+ #endif
10
20
}
11
21
12
22
// Update is called once per frame
13
23
void Update ( ) {
14
24
15
25
}
16
26
17
- public void onDeeplink ( string deeplink ) {
27
+ public void onDeeplink2 ( string deeplink ) {
18
28
Debug . Log ( "onDeeplink " + deeplink ) ;
29
+ // Dictionary<string, string> values = new Dictionary<string, string>();
30
+ // values.Add("link", deeplink);
31
+ // AppsFlyer.trackRichEvent("deeplink", values);
19
32
}
33
+
34
+
20
35
}
You can’t perform that action at this time.
0 commit comments