feat:删除Appsflyer-SDK、删除SUD-SDK
This commit is contained in:
@@ -271,7 +271,7 @@ dependencies {
|
|||||||
|
|
||||||
implementation 'com.github.mmin18:realtimeblurview:1.2.1'
|
implementation 'com.github.mmin18:realtimeblurview:1.2.1'
|
||||||
|
|
||||||
implementation 'com.appsflyer:af-android-sdk:6.8.2'
|
// implementation 'com.appsflyer:af-android-sdk:6.8.2'
|
||||||
|
|
||||||
implementation 'com.github.zhpanvip:BannerViewPager:3.5.6'
|
implementation 'com.github.zhpanvip:BannerViewPager:3.5.6'
|
||||||
|
|
||||||
@@ -293,7 +293,7 @@ dependencies {
|
|||||||
//wheelView
|
//wheelView
|
||||||
implementation 'com.contrarywind:wheelview:4.1.0'
|
implementation 'com.contrarywind:wheelview:4.1.0'
|
||||||
|
|
||||||
implementation 'tech.sud.mgp:SudMGP-static:1.3.3.1158'
|
// implementation 'tech.sud.mgp:SudMGP-static:1.3.3.1158'
|
||||||
|
|
||||||
implementation project(':modules:module_base')
|
implementation project(':modules:module_base')
|
||||||
if (!isolationMode) {
|
if (!isolationMode) {
|
||||||
|
@@ -16,9 +16,9 @@ import android.view.WindowManager
|
|||||||
import android.widget.PopupWindow
|
import android.widget.PopupWindow
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
import com.appsflyer.AFInAppEventParameterName
|
//import com.appsflyer.AFInAppEventParameterName
|
||||||
import com.appsflyer.AFInAppEventType
|
//import com.appsflyer.AFInAppEventType
|
||||||
import com.appsflyer.AppsFlyerLib
|
//import com.appsflyer.AppsFlyerLib
|
||||||
import com.example.module_base.support.billing.IBillingResult
|
import com.example.module_base.support.billing.IBillingResult
|
||||||
import com.example.module_base.support.billing.IBillingService
|
import com.example.module_base.support.billing.IBillingService
|
||||||
import com.example.module_base.support.billing.IProductDetails
|
import com.example.module_base.support.billing.IProductDetails
|
||||||
@@ -276,35 +276,35 @@ class FirstChargeDialog : BaseViewBindingActivity<DialogFirstChargeBinding>(),
|
|||||||
{ token: String ->
|
{ token: String ->
|
||||||
//L.i("token=" + token);
|
//L.i("token=" + token);
|
||||||
billingManager?.consumeAsync(token)
|
billingManager?.consumeAsync(token)
|
||||||
var skuDetails: IProductDetails? = null
|
// var skuDetails: IProductDetails? = null
|
||||||
val goodList = goodsList
|
// val goodList = goodsList
|
||||||
if (!goodList.isNullOrEmpty()) {
|
// if (!goodList.isNullOrEmpty()) {
|
||||||
for (datum in goodList) {
|
// for (datum in goodList) {
|
||||||
if (datum.chargeProdId == purchase.getProducts()[0]) {
|
// if (datum.chargeProdId == purchase.getProducts()[0]) {
|
||||||
skuDetails = datum.productDetails
|
// skuDetails = datum.productDetails
|
||||||
break
|
// break
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (skuDetails != null) {
|
// if (skuDetails != null) {
|
||||||
val eventValue: MutableMap<String, Any> =
|
// val eventValue: MutableMap<String, Any> =
|
||||||
HashMap()
|
// HashMap()
|
||||||
eventValue[AFInAppEventParameterName.CONTENT_TYPE] = "Gold"
|
// eventValue[AFInAppEventParameterName.CONTENT_TYPE] = "Gold"
|
||||||
eventValue[AFInAppEventParameterName.QUANTITY] = 1
|
// eventValue[AFInAppEventParameterName.QUANTITY] = 1
|
||||||
eventValue[AFInAppEventParameterName.CONTENT_ID] = purchase.getOrderId()!!
|
// eventValue[AFInAppEventParameterName.CONTENT_ID] = purchase.getOrderId()!!
|
||||||
skuDetails.getOneTimePurchaseOfferDetails()?.let {
|
// skuDetails.getOneTimePurchaseOfferDetails()?.let {
|
||||||
eventValue[AFInAppEventParameterName.REVENUE] =
|
// eventValue[AFInAppEventParameterName.REVENUE] =
|
||||||
it.getPriceAmountMicros() / 1000000f
|
// it.getPriceAmountMicros() / 1000000f
|
||||||
eventValue["Price"] = it.getFormattedPrice()
|
// eventValue["Price"] = it.getFormattedPrice()
|
||||||
eventValue[AFInAppEventParameterName.CURRENCY] =
|
// eventValue[AFInAppEventParameterName.CURRENCY] =
|
||||||
it.getPriceCurrencyCode()
|
// it.getPriceCurrencyCode()
|
||||||
}
|
// }
|
||||||
AppsFlyerLib.getInstance().logEvent(
|
// AppsFlyerLib.getInstance().logEvent(
|
||||||
applicationContext,
|
// applicationContext,
|
||||||
AFInAppEventType.PURCHASE,
|
// AFInAppEventType.PURCHASE,
|
||||||
eventValue
|
// eventValue
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
) { throwable: Throwable ->
|
) { throwable: Throwable ->
|
||||||
if (throwable !is IgnoreException) {
|
if (throwable !is IgnoreException) {
|
||||||
|
@@ -7,7 +7,6 @@ import android.text.style.ForegroundColorSpan;
|
|||||||
|
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
|
|
||||||
import com.appsflyer.internal.components.network.http.exceptions.HttpException;
|
|
||||||
import com.chwl.app.R;
|
import com.chwl.app.R;
|
||||||
import com.chwl.app.base.BaseActivity;
|
import com.chwl.app.base.BaseActivity;
|
||||||
import com.chwl.core.auth.AuthModel;
|
import com.chwl.core.auth.AuthModel;
|
||||||
@@ -24,6 +23,8 @@ import java.text.SimpleDateFormat;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
|
import retrofit2.HttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* create by lvzebiao @2019/12/9
|
* create by lvzebiao @2019/12/9
|
||||||
*/
|
*/
|
||||||
|
@@ -22,9 +22,9 @@ import androidx.annotation.Nullable;
|
|||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.appsflyer.AFInAppEventParameterName;
|
//import com.appsflyer.AFInAppEventParameterName;
|
||||||
import com.appsflyer.AFInAppEventType;
|
//import com.appsflyer.AFInAppEventType;
|
||||||
import com.appsflyer.AppsFlyerLib;
|
//import com.appsflyer.AppsFlyerLib;
|
||||||
import com.example.module_base.support.billing.IBillingService;
|
import com.example.module_base.support.billing.IBillingService;
|
||||||
import com.example.module_base.support.billing.IProductDetails;
|
import com.example.module_base.support.billing.IProductDetails;
|
||||||
import com.example.module_base.support.billing.IPurchase;
|
import com.example.module_base.support.billing.IPurchase;
|
||||||
@@ -228,25 +228,25 @@ public class ChargeActivity extends BaseMvpActivity<IChargeView, ChargePresenter
|
|||||||
.subscribe(token -> {
|
.subscribe(token -> {
|
||||||
billingManager.consumeAsync(token);
|
billingManager.consumeAsync(token);
|
||||||
|
|
||||||
IProductDetails productDetails = null;
|
// IProductDetails productDetails = null;
|
||||||
for (ChargeBean datum : mChargeAdapter.getData()) {
|
// for (ChargeBean datum : mChargeAdapter.getData()) {
|
||||||
if (datum.getChargeProdId().equals(purchase.getProducts().get(0))) {
|
// if (datum.getChargeProdId().equals(purchase.getProducts().get(0))) {
|
||||||
productDetails = datum.getProductDetails();
|
// productDetails = datum.getProductDetails();
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (productDetails != null) {
|
// if (productDetails != null) {
|
||||||
Map<String, Object> eventValue = new HashMap<>();
|
// Map<String, Object> eventValue = new HashMap<>();
|
||||||
eventValue.put(AFInAppEventParameterName.CONTENT_TYPE, "Gold");
|
// eventValue.put(AFInAppEventParameterName.CONTENT_TYPE, "Gold");
|
||||||
eventValue.put(AFInAppEventParameterName.QUANTITY, 1);
|
// eventValue.put(AFInAppEventParameterName.QUANTITY, 1);
|
||||||
eventValue.put(AFInAppEventParameterName.CONTENT_ID, purchase.getOrderId());
|
// eventValue.put(AFInAppEventParameterName.CONTENT_ID, purchase.getOrderId());
|
||||||
if (productDetails.getOneTimePurchaseOfferDetails() != null) {
|
// if (productDetails.getOneTimePurchaseOfferDetails() != null) {
|
||||||
eventValue.put(AFInAppEventParameterName.REVENUE, productDetails.getOneTimePurchaseOfferDetails().getPriceAmountMicros() / 1000000f);
|
// eventValue.put(AFInAppEventParameterName.REVENUE, productDetails.getOneTimePurchaseOfferDetails().getPriceAmountMicros() / 1000000f);
|
||||||
eventValue.put("Price", productDetails.getOneTimePurchaseOfferDetails().getFormattedPrice());
|
// eventValue.put("Price", productDetails.getOneTimePurchaseOfferDetails().getFormattedPrice());
|
||||||
eventValue.put(AFInAppEventParameterName.CURRENCY, productDetails.getOneTimePurchaseOfferDetails().getPriceCurrencyCode());
|
// eventValue.put(AFInAppEventParameterName.CURRENCY, productDetails.getOneTimePurchaseOfferDetails().getPriceCurrencyCode());
|
||||||
}
|
// }
|
||||||
AppsFlyerLib.getInstance().logEvent(getApplicationContext(), AFInAppEventType.PURCHASE, eventValue);
|
// AppsFlyerLib.getInstance().logEvent(getApplicationContext(), AFInAppEventType.PURCHASE, eventValue);
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
throwable -> {
|
throwable -> {
|
||||||
if (!(throwable instanceof IgnoreException)) {
|
if (!(throwable instanceof IgnoreException)) {
|
||||||
|
@@ -12,9 +12,9 @@ import androidx.constraintlayout.widget.ConstraintLayout
|
|||||||
import androidx.core.view.isInvisible
|
import androidx.core.view.isInvisible
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
import com.appsflyer.AFInAppEventParameterName
|
//import com.appsflyer.AFInAppEventParameterName
|
||||||
import com.appsflyer.AFInAppEventType
|
//import com.appsflyer.AFInAppEventType
|
||||||
import com.appsflyer.AppsFlyerLib
|
//import com.appsflyer.AppsFlyerLib
|
||||||
import com.example.module_base.support.billing.IBillingResult
|
import com.example.module_base.support.billing.IBillingResult
|
||||||
import com.example.module_base.support.billing.IBillingService
|
import com.example.module_base.support.billing.IBillingService
|
||||||
import com.example.module_base.support.billing.IProductDetails
|
import com.example.module_base.support.billing.IProductDetails
|
||||||
@@ -453,36 +453,36 @@ class VipMainActivity : BaseViewBindingActivity<ActivityVipMainBinding>(),
|
|||||||
{ token: String ->
|
{ token: String ->
|
||||||
//L.i("token=" + token);
|
//L.i("token=" + token);
|
||||||
billingManager?.consumeAsync(token)
|
billingManager?.consumeAsync(token)
|
||||||
var skuDetails: IProductDetails? = null
|
// var skuDetails: IProductDetails? = null
|
||||||
if (googleChargeBean?.getChargeProdId() == purchase.getProducts()
|
// if (googleChargeBean?.getChargeProdId() == purchase.getProducts()
|
||||||
.firstOrNull()
|
// .firstOrNull()
|
||||||
) {
|
// ) {
|
||||||
skuDetails = googleChargeBean?.productDetails
|
// skuDetails = googleChargeBean?.productDetails
|
||||||
}
|
// }
|
||||||
if (skuDetails != null) {
|
// if (skuDetails != null) {
|
||||||
val eventValue: MutableMap<String, Any> =
|
// val eventValue: MutableMap<String, Any> =
|
||||||
HashMap()
|
// HashMap()
|
||||||
eventValue[AFInAppEventParameterName.CONTENT_TYPE] = "Gold"
|
// eventValue[AFInAppEventParameterName.CONTENT_TYPE] = "Gold"
|
||||||
eventValue[AFInAppEventParameterName.QUANTITY] = 1
|
// eventValue[AFInAppEventParameterName.QUANTITY] = 1
|
||||||
eventValue[AFInAppEventParameterName.CONTENT_ID] =
|
// eventValue[AFInAppEventParameterName.CONTENT_ID] =
|
||||||
purchase.getOrderId()!!
|
// purchase.getOrderId()!!
|
||||||
if (skuDetails.getOneTimePurchaseOfferDetails() != null) {
|
// if (skuDetails.getOneTimePurchaseOfferDetails() != null) {
|
||||||
eventValue[AFInAppEventParameterName.REVENUE] =
|
// eventValue[AFInAppEventParameterName.REVENUE] =
|
||||||
skuDetails.getOneTimePurchaseOfferDetails()
|
// skuDetails.getOneTimePurchaseOfferDetails()
|
||||||
?.getPriceAmountMicros()!! / 1000000f
|
// ?.getPriceAmountMicros()!! / 1000000f
|
||||||
eventValue["Price"] =
|
// eventValue["Price"] =
|
||||||
skuDetails.getOneTimePurchaseOfferDetails()
|
// skuDetails.getOneTimePurchaseOfferDetails()
|
||||||
?.getFormattedPrice()!!
|
// ?.getFormattedPrice()!!
|
||||||
eventValue[AFInAppEventParameterName.CURRENCY] =
|
// eventValue[AFInAppEventParameterName.CURRENCY] =
|
||||||
skuDetails.getOneTimePurchaseOfferDetails()
|
// skuDetails.getOneTimePurchaseOfferDetails()
|
||||||
?.getPriceCurrencyCode()!!
|
// ?.getPriceCurrencyCode()!!
|
||||||
}
|
// }
|
||||||
AppsFlyerLib.getInstance().logEvent(
|
// AppsFlyerLib.getInstance().logEvent(
|
||||||
applicationContext,
|
// applicationContext,
|
||||||
AFInAppEventType.PURCHASE,
|
// AFInAppEventType.PURCHASE,
|
||||||
eventValue
|
// eventValue
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
) { throwable: Throwable ->
|
) { throwable: Throwable ->
|
||||||
if (throwable !is IgnoreException) {
|
if (throwable !is IgnoreException) {
|
||||||
|
Reference in New Issue
Block a user