diff --git a/Android/CEFSDK/README.md b/Android/CEFSDK/README.md new file mode 100644 index 0000000..61df2e5 --- /dev/null +++ b/Android/CEFSDK/README.md @@ -0,0 +1,50 @@ +App module 为测试代码,CEFSDK module为sdk源码,按照下面步骤打包,把classes.jar修改成需要的名字之后,给用户即可。 +  + +1. 从github上把SDK源码下载下来之后,以下载的CEFSDKTest为例,依次点击File->New ->Import Module,选择好下载的CEFSDK之后,出现以下界面。 + +![alt text](../DocImages/addModule.png "addModule.png") + + +点击finish,等待编译完成。 +  + +2. 点击Android Studio右侧的Gradle。 +  + +3. 选取CEFSDK。 +![alt text](../DocImages/buildSDK1.png "buildSDK1.png") +4. 选取 CEFSDK---Tasks ---other----鼠标左键双击transformClassesAndResourcesWithSyncLibJarsForForRelease. +![alt text](../DocImages/buildSDK2.png "buildSDK2.png") +![alt text](../DocImages/buildSDK3.png "buildSDK3.png") + +双击之后,Android Studio下方会出现编译界面,等待编译完成。 + ![alt text](../DocImages/buildSDKResult.png "buildSDKResult.png") + +5. 分两种情况: +  + + 第一种情况:插件版本为 3.0.0+,Gradle版本为4.1+时: +  + +CEFSDK module下 build—intermediate---bundles—release 包下的classes.jar .修改成需要修改的名字,发送给用户即可。 +![alt text](../DocImages/SDKPath1.png "SDKPath1.png") + + +第二种情况:插件版本为 3.1.0+,Gradle版本为4.4+时: +![alt text](../DocImages/SDKPath2.png "SDKPath2.png") + + +# 如何查看插件版本和Gradle版本 +  +插件版本位置:项目节点下build.gradle +![alt text](../DocImages/buildVersion.png "buildVersion.png") +  + +Gradle版本位置: +![alt text](../DocImages/gradleVersion.png "gradleVersion.png") + + +# 插件版本和Gradle版本对照关系 +https://developer.android.google.cn/studio/releases/gradle-plugin#updating-plugin + diff --git a/Android/CEFSDKTest/README.md b/Android/CEFSDKTest/README.md new file mode 100644 index 0000000..b5a06dd --- /dev/null +++ b/Android/CEFSDKTest/README.md @@ -0,0 +1,3 @@ +请参考以下使用文档: + +[CEF 安卓 SDK 配置](https://docs.azure.cn/zh-cn/customer-engagement-fabric/customer-engagement-fabric-android-sdk) diff --git a/Android/DocImages/SDKPath1.png b/Android/DocImages/SDKPath1.png new file mode 100644 index 0000000..44bdbe1 Binary files /dev/null and b/Android/DocImages/SDKPath1.png differ diff --git a/Android/DocImages/SDKPath2.png b/Android/DocImages/SDKPath2.png new file mode 100644 index 0000000..5b65ee5 Binary files /dev/null and b/Android/DocImages/SDKPath2.png differ diff --git a/Android/DocImages/addModule.png b/Android/DocImages/addModule.png new file mode 100644 index 0000000..7833abf Binary files /dev/null and b/Android/DocImages/addModule.png differ diff --git a/Android/DocImages/buildSDK1.png b/Android/DocImages/buildSDK1.png new file mode 100644 index 0000000..832c65d Binary files /dev/null and b/Android/DocImages/buildSDK1.png differ diff --git a/Android/DocImages/buildSDK2.png b/Android/DocImages/buildSDK2.png new file mode 100644 index 0000000..44419ad Binary files /dev/null and b/Android/DocImages/buildSDK2.png differ diff --git a/Android/DocImages/buildSDK3.png b/Android/DocImages/buildSDK3.png new file mode 100644 index 0000000..3ecf21d Binary files /dev/null and b/Android/DocImages/buildSDK3.png differ diff --git a/Android/DocImages/buildSDKResult.png b/Android/DocImages/buildSDKResult.png new file mode 100644 index 0000000..154aa6f Binary files /dev/null and b/Android/DocImages/buildSDKResult.png differ diff --git a/Android/DocImages/buildVersion.png b/Android/DocImages/buildVersion.png new file mode 100644 index 0000000..e4f8a98 Binary files /dev/null and b/Android/DocImages/buildVersion.png differ diff --git a/Android/DocImages/gradleVersion.png b/Android/DocImages/gradleVersion.png new file mode 100644 index 0000000..7a7e699 Binary files /dev/null and b/Android/DocImages/gradleVersion.png differ