Merge branch 'refs/heads/v6.8.1'
This commit is contained in:
@@ -3,13 +3,9 @@ package com.yunbao.common.pay.samsung;
|
||||
import android.content.Context;
|
||||
|
||||
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.utils.L;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class SamsungUtil {
|
||||
|
||||
@@ -29,7 +25,7 @@ public class SamsungUtil {
|
||||
public SamsungUtil(Context mContext) {
|
||||
this.mContext = mContext;
|
||||
try {
|
||||
samsung = mContext.getClassLoader().loadClass("com.samsung.android.sdk.iap.lib.SamsungUtil")
|
||||
samsung = mContext.getClassLoader().loadClass("com.samsung.utils.SamsungUtil")
|
||||
.getConstructor(Context.class)
|
||||
.newInstance(mContext);
|
||||
} catch (Exception e) {
|
||||
@@ -67,7 +63,7 @@ public class SamsungUtil {
|
||||
public void buy(String skuId, OnSamsungPaymentListener onPaymentListener) {
|
||||
if(samsung==null)return;
|
||||
try {
|
||||
Class<?> listenerClass = Class.forName("com.samsung.android.sdk.iap.lib.SamsungUtil$OnPaymentListener");
|
||||
Class<?> listenerClass = Class.forName("com.samsung.utils.SamsungUtil$OnPaymentListener");
|
||||
Object listenerObj = Proxy.newProxyInstance(mContext.getClassLoader(), new Class[]{listenerClass}, new InvocationHandler() {
|
||||
@Override
|
||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||
|
||||
Reference in New Issue
Block a user