/sa-sdk-android-plugin2

神策数据官方 Android 埋点插件,用于 Android 端的数据采集。通过使用字节码插桩(ASM)的技术实现 Android 端的全埋点(无埋点、无码埋点、无痕埋点、自动埋点)。

Primary LanguageGroovyApache License 2.0Apache-2.0

logo

sa-sdk-android-plugin2

The official Android SDK Plugin for Sensors Analytics

快速集成

Gradle 编译环境(Android Studio)

(1)在 project 级别的 build.gradle 文件中添加 android-gradle-plugin 依赖:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0'
        //添加 android-gradle-plugin 依赖
        classpath 'com.sensorsdata.analytics.android:android-gradle-plugin2:3.2.3'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

(2)在 主 module 的 build.gradle 文件中添加 com.sensorsdata.analytics.android 插件、Sensors Analytics SDK 依赖:

apply plugin: 'com.android.application'
//添加 com.sensorsdata.analytics.android 插件
apply plugin: 'com.sensorsdata.analytics.android'

dependencies {
   //添加 Sensors Analytics SDK 依赖
   compile 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:4.0.7'
}

To Learn More

See our full manual

讨论

扫码加入神策数据开源社区 QQ 群
群号:785122381
扫码加入神策数据开源社区微信群
 QQ 讨论群  微信讨论群

公众号

扫码关注
神策数据开源社区
扫码关注
神策数据开源社区服务号
 微信订阅号  微信服务号

新书推荐

《数据驱动:从方法到实践》 《Android 全埋点解决方案》 《iOS 全埋点解决方案》
《数据驱动:从方法到实践》 《Android 全埋点解决方案》 《iOS 全埋点解决方案》

感谢

hugo

gradle_plugin_android_aspectjx

gradle-android-aspectj-plugin

tracklytics

License

Copyright 2015-2020 Sensors Data Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.gradle_plugin_android_aspectjx