Wallet SDK集成了终端“芯-端-云”全栈技术的开放能力,可实现卡、证、券、票、钥匙等各类凭证电子化。让用户能够轻松地将门票、登机牌、会员卡、优惠券、礼品卡保存在手机中,以便在适当的时间使用。
SDK名称:Wallet SDK
SDK包名:walletsdk-eclipse-5.0.1.304.zip
开发者:华为软件技术有限公司
版本号:最新版本:5.0.1.304
校验码:SHA256:87f460ddfe85d80ca8dcab09c507a3f9c7eeb16575bdbdf04a8fcfbdf699a24d
针对Eclipse开发环境,华为提供了下载HMS Core SDK包本地集成的方式。在开始开发前,您需要将HMS Core SDK集成到您的Eclipse开发环境中。
下载地址请参见:Eclipse SDK下载。

待导入的工程必须和工作空间在相同的磁盘空间里,例如都在“D:\”。如果不在,您可以选择“Copy projects into workspace”,将工程文件复制到工作空间。



<application>
<provider
android:name="com.huawei.agconnect.core.provider.AGConnectInitializeProvider"
android:authorities="${applicationId}.AGCInitializeProvider"
android:exported="false" />
<service
android:name="com.huawei.agconnect.core.ServiceDiscovery"
android:exported="false" />
</application> 将HMSSdkStats工程中assets目录下的资源文件拷贝到您的工程中assets目录下。
如果依赖其他的Kit资源,还需要复制对应Kit的资源文件到您的工程目录下。

打开您的工程的“project.properties”文件,添加如下代码,用于合并子工程中的“Manifest”文件。
manifestmerger.enabled=true
ADT必须是17以上版本。
// TODO: Import the following classes: import java.io.IOException; import java.io.InputStream; import com.huawei.agconnect.config.AGConnectServicesConfig; import com.huawei.agconnect.config.LazyInputStream; import android.app.Application; import android.content.Context; import android.util.Log; public class MyApplication extends Application{ @Override public void onCreate() { super.onCreate(); } // TODO: Add the following code: @Override protected void attachBaseContext(Context context) { super.attachBaseContext(context); AGConnectServicesConfig config = AGConnectServicesConfig.fromContext(context); config.overlayWith(new LazyInputStream(context) { public InputStream get(Context context) { try { return context.getAssets().open("agconnect-services.json"); } catch (IOException e) { return null; } } }); } // TODO: End }
<application android:name=".MyApplication" … > …