0.0.6 • Published 4 years ago
zc-plugin-alipay v0.0.6
npm config set registry https://registry.npmjs.org/ npm config set proxy=http://127.0.0.1:8580 npm login npm publish npm config list -l npm config delete proxy npm config set registry http://localhost:8081/repository/npm/
MainActivity.java // 沙箱调试时添加,正式环境需要去掉 EnvUtils.setEnv(EnvUtils.EnvEnum.SANDBOX);
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
add(ZCAlipayPlugin.class);
}});
AndroidManifest.xml
将alipaySdk-15.7.5-20200422171619.aar 添加到libs目录下,libs目录和src同级
build.gradle
repositories { // 添加下面的内容 flatDir{ dirs 'libs', 'libs2' } }
dependencies { implementation fileTree(include: '*.jar', dir: 'libs2')
implementation (name: 'alipaySdk-15.7.5-20200422171619', ext: 'aar')
}