IGAW Android SDK
IGAWorks 的所有服务是以共同模板 + 附加服务模板 (add-on) 的形式提供。
使用 adbrix、adPOPcorn (积分墙,DA)、LiveOps、交叉推广、优惠券、Nanoo 等服务时, 必须先集成共同集成事项。
下载
首先请下载最新版本的共同集成的 SDK 文件和 add-on SDK。
[SDK 下载中心]
添加 SDK
Android Studio Project
将下载的 IgawCommon~*.jar 文件和要使用服务的 Igaw~*.jar 文件,复制到 app/libs 文件中。
复制文件后,请确认 bundle.gradle 文件的 dependencies 设置是否正常。
Eclipse Project
将下载的 IgawCommon~*.jar 文件和要使用服务的 Igaw~*.jar 文件,复制到 Project/libs 文件中。
Proguard 设置
使用 Proguard 混淆处理时,需参考以下内容对 IGAWorks SDK 进行例外处理。
##---------------Begin: proguard configuration for Igaworks Common ----------
-keep class com.igaworks.** { *; }
-dontwarn com.igaworks.**
##---------------End: proguard configuration for Igaworks Common ----------
##---------------Begin: proguard configuration for Gson ----------
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature
# For using GSON @Expose annotation
-keepattributes *Annotation*
# Gson specific classes
-keep class sun.misc.Unsafe { *; }
-keep class com.igaworks.gson.stream.** { *; }
# Application classes that will be serialized/deserialized over Gson
-keep class com.igaworks.adbrix.model.** { *; }
##---------------End: proguard configuration for Gson ----------
##---------------Begin: proguard configuration for Igaworks Common ----------
-keep class com.igaworks.** { *; }
-dontwarn com.igaworks.**
##---------------End: proguard configuration for Igaworks Common ----------
##---------------Begin: proguard configuration for Gson ----------
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature
# For using GSON @Expose annotation
-keepattributes *Annotation*
# Gson specific classes
-keep class sun.misc.Unsafe { *; }
-keep class com.igaworks.gson.stream.** { *; }
# Application classes that will be serialized/deserialized over Gson
-keep class com.igaworks.adbrix.model.** { *; }
##---------------End: proguard configuration for Gson ----------