com.xd.sdk.share 0.0.11-alpha → 0.0.13-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 2020fbbba2fc94084b1cf3e592886e4f
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 1
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
Android: Android
|
|
16
|
+
second:
|
|
17
|
+
enabled: 1
|
|
18
|
+
settings: {}
|
|
19
|
+
- first:
|
|
20
|
+
Any:
|
|
21
|
+
second:
|
|
22
|
+
enabled: 0
|
|
23
|
+
settings: {}
|
|
24
|
+
- first:
|
|
25
|
+
Editor: Editor
|
|
26
|
+
second:
|
|
27
|
+
enabled: 0
|
|
28
|
+
settings:
|
|
29
|
+
DefaultValueInitialized: true
|
|
30
|
+
userData:
|
|
31
|
+
assetBundleName:
|
|
32
|
+
assetBundleVariant:
|
|
Binary file
|
|
@@ -36,7 +36,7 @@ namespace XD.SDK.Share.Internal.Mobile
|
|
|
36
36
|
private ShareFeaturesImpl()
|
|
37
37
|
{
|
|
38
38
|
EngineBridge.GetInstance()
|
|
39
|
-
.Register(BridgeConstants.Share.
|
|
39
|
+
.Register(BridgeConstants.Share.ServiceName, BridgeConstants.Share.ServiceImpl);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
public void Share(XDGBaseShareParam shareParam, XDGShareCallback callback)
|
|
@@ -87,7 +87,7 @@ namespace XD.SDK.Share.Internal.Mobile
|
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
var command = new Command.Builder()
|
|
90
|
-
.Service(BridgeConstants.Share.
|
|
90
|
+
.Service(BridgeConstants.Share.BridgeName)
|
|
91
91
|
.Method("shareWithType")
|
|
92
92
|
.Args(XDUtility.BridgeArgToDictionary("params", argDic))
|
|
93
93
|
.Callback(true)
|
|
@@ -133,7 +133,7 @@ namespace XD.SDK.Share.Internal.Mobile
|
|
|
133
133
|
using (var unityPlayerClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
|
|
134
134
|
{
|
|
135
135
|
var currentActivity = unityPlayerClass.GetStatic<AndroidJavaObject>("currentActivity");
|
|
136
|
-
using (var shareBridgeClass = new AndroidJavaClass(BridgeConstants.Share.
|
|
136
|
+
using (var shareBridgeClass = new AndroidJavaClass(BridgeConstants.Share.ServiceImpl))
|
|
137
137
|
{
|
|
138
138
|
return shareBridgeClass.CallStatic<bool>("isAppInstalled", currentActivity, (int)platformType);
|
|
139
139
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.xd.sdk.share",
|
|
3
3
|
"displayName": "XDGSDK Share",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13-alpha",
|
|
5
5
|
"description": "XDGSDK",
|
|
6
6
|
"unity": "2019.3",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.xd.sdk.common": "0.0.
|
|
9
|
+
"com.xd.sdk.common": "0.0.13-alpha"
|
|
10
10
|
}
|
|
11
11
|
}
|