Installation

Installation

Here is how to install the Wepin Unity SDK.

Download it from Github.

The Wepin Unity SDK is distributed on the wepin-unity-sdk Github. Download the wepinSDK_vX.X.X.unitypackage file and import the package file into your Unity3D project.

If you encounter the following error when importing this package,

The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)

Please add dependency "com.unity.nuget.newtonsoft-json": "3.0.2" Packages/manifest.json file in the project root.

For iOS

Modify Info file

In Xcode, you need to register URL Schemes in the Info file.

The value of URL Schemes should be your App Bundle ID + .wepin.

For Android

Modify AndroidManifest

To use Wepin in your app, you need to modify the AndroidManifest.xml file of your app.

Add Permissions

Add the following permission to the main Activity of your app to use Wepin.

<uses-permission android:name="android.permission.INTERNET" />

Add Intent Filter for Wepin Activity

You need to add an intent filter for the Wepin activity in your app's AndroidManifest.xml. The schema value you add should be your app's package name + .wepin.

  <activity android:name="com.unity3d.player.UnityPlayerActivity"
    ....
  >
      <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="PACKAGE_NAME.wepin"/> <!-- package name of your android app + '.wepin' -->
      </intent-filter>            
    ....
  </activity>

Release

The released package versions can be found on the GitHub repository below.

Last updated