-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a822622
Showing
148 changed files
with
13,890 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
*.iml | ||
.gradle | ||
local.properties | ||
.DS_Store | ||
/captures | ||
.externalNativeBuild | ||
.idea/ | ||
debug.keystore | ||
TODO.md | ||
/jad_video | ||
/jad_videocache | ||
/repo | ||
/stub-plugin | ||
/oaid_provider | ||
.cxx/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 haorongrong | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# JADYunAndroid | ||
京东广告联盟 京准通SDK [官方接入文档](https://help-sdk-doc.jd.com/ansdkDoc/) | ||
|
||
|
||
# 接入说明 | ||
|
||
一、在项目的build.gradle中配置: | ||
|
||
``` | ||
repositories { | ||
maven { url 'https://jitpack.io' } | ||
} | ||
``` | ||
|
||
|
||
二、在module的build.gradle中配置: | ||
## 方式1. 单广告位按需接入 | ||
|
||
``` | ||
dependencies { | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_core:1.0.0' //必选,核心功能 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_splash:1.0.0' //可选,开屏广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_banner:1.0.0' //可选,横幅广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_feed:1.0.0' //可选,信息流广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_interstitial:1.0.0' //可选,插屏广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_native:1.0.0' //可选,自渲染广告 | ||
} | ||
``` | ||
|
||
## 方式2. 全广告位接入 | ||
``` | ||
dependencies { | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_sdk:1.0.0' | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
apply from: 'config.gradle' | ||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven { url 'https://jitpack.io' } | ||
} | ||
dependencies { | ||
//gradle版本号不要修改 | ||
classpath "com.android.tools.build:gradle:4.0.1" | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
classpath 'com.kezong:fat-aar:1.3.3' | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven { url 'https://jitpack.io' } | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ext { | ||
androidConfig = [ | ||
// config for demo | ||
applicationId : "com.jd.sdkceshiandroid", | ||
demoCompileSdkVersion: 31, | ||
demoBuildToolsVersion: "31.0.0", | ||
demoMinSdkVersion : 16, | ||
demoTargetSdkVersion : 31, | ||
demoVersionCode : 1, | ||
demoVersionName : '1.0.31', | ||
|
||
// config for sdk | ||
compileSdkVersion : 29, | ||
buildToolsVersion : "30.0.3", | ||
minSdkVersion : 16, | ||
targetSdkVersion : 28, | ||
] | ||
|
||
AndroidLibraries = [ | ||
appcompat : 'com.android.support:appcompat-v7:28.0.0', | ||
constraint : 'com.android.support.constraint:constraint-layout:2.0.4', | ||
recyclerview: 'com.android.support:recyclerview-v7:28.0.0', | ||
] | ||
|
||
ThirdLibraries = [ | ||
glide : 'com.github.bumptech.glide:glide:4.9.0', | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/build | ||
seeds.txt | ||
mapping.txt | ||
libs/jad_yun_sdk_*.aar | ||
/release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### 概况 | ||
京东广告联盟 京准通SDK [官方接入文档](https://help-sdk-doc.jd.com/ansdkDoc/) | ||
|
||
### Demo 工程结构说明 | ||
|
||
1、DemoApplication.java 主要用于配置广告SDK初始化配置 | ||
|
||
2、DemoMainActivity.java 为demo的主页面,用于导航到各种广告页面。 | ||
|
||
3、com.jd.ad.demo.expressad 包下为模板广告相关demo | ||
|
||
4、com.jd.ad.demo.nativead 包下为自渲染相关demo | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
apply plugin: 'com.android.application' | ||
def androidCfg = rootProject.ext.androidConfig | ||
def AndroidLibraries = rootProject.ext.AndroidLibraries | ||
def ThirdLibraries = rootProject.ext.ThirdLibraries | ||
android { | ||
compileSdkVersion androidCfg.demoCompileSdkVersion | ||
buildToolsVersion androidCfg.demoBuildToolsVersion | ||
|
||
defaultConfig { | ||
applicationId androidCfg.applicationId | ||
minSdkVersion androidCfg.demoMinSdkVersion | ||
targetSdkVersion androidCfg.demoTargetSdkVersion | ||
|
||
versionCode androidCfg.demoVersionCode | ||
versionName androidCfg.demoVersionName | ||
|
||
vectorDrawables.useSupportLibrary = true | ||
|
||
|
||
ndk { | ||
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' // 设置支持的SO库架构 | ||
} | ||
} | ||
flavorDimensions "channel" | ||
productFlavors { | ||
xiaomi { | ||
dimension "channel" | ||
} | ||
jad { | ||
dimension "channel" | ||
} | ||
} | ||
signingConfigs { | ||
release { | ||
} | ||
} | ||
|
||
buildTypes { | ||
debug { | ||
} | ||
release { | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
sourceSets { | ||
main { | ||
jniLibs.srcDirs = ['libs'] | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
lintOptions { | ||
checkReleaseBuilds false | ||
abortOnError false | ||
} | ||
|
||
} | ||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation AndroidLibraries.appcompat | ||
implementation AndroidLibraries.constraint | ||
implementation AndroidLibraries.recyclerview | ||
implementation ThirdLibraries.glide | ||
|
||
//这里只做OAID 引用的方法: 将下载好的oaid aar 放到 demo libs 目录下。具体请参看移动安全联盟 | ||
// 如需要请到移动安全联盟 下载 相关版本 进行OAID 获取 http://www.msa-alliance.cn/col.jsp?id=120 | ||
implementation files('libs/oaid_sdk_1.0.23.aar') | ||
|
||
//方式1. 单广告位按需接入 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_core:1.0.0' //必选,核心功能 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_splash:1.0.0' //可选,开屏广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_banner:1.0.0' //可选,横幅广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_feed:1.0.0' //可选,信息流广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_interstitial:1.0.0' //可选,插屏广告 | ||
implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_native:1.0.0' //可选,自渲染广告 | ||
|
||
//方式2. 全广告位接入 | ||
//implementation 'com.github.JAD-FE-TEAM.JADYunAndroid:jad_yun_sdk:1.0.0' | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile | ||
|
||
|
||
#列出混淆前后的映射 | ||
-printmapping mapping.txt | ||
|
||
# glide混淆规则 | ||
-keep public class * implements com.bumptech.glide.module.GlideModule | ||
-keep class * extends com.bumptech.glide.module.AppGlideModule { | ||
<init>(...); | ||
} | ||
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** { | ||
**[] $VALUES; | ||
public *; | ||
} | ||
|
||
########### 移动安全联盟 OAID 混淆要求 begin ######## | ||
-keep class XI.CA.XI.**{*;} | ||
-keep class XI.K0.XI.**{*;} | ||
-keep class XI.XI.K0.**{*;} | ||
-keep class XI.vs.K0.**{*;} | ||
-keep class XI.xo.XI.XI.**{*;} | ||
-keep class com.asus.msa.SupplementaryDID.**{*;} | ||
-keep class com.asus.msa.sdid.**{*;} | ||
-keep class com.bun.lib.**{*;} | ||
-keep class com.bun.miitmdid.**{*;} | ||
-keep class com.huawei.hms.ads.identifier.**{*;} | ||
-keep class com.samsung.android.deviceidservice.**{*;} | ||
-keep class org.json.**{*;} | ||
-keep public class com.netease.nis.sdkwrapper.Utils { | ||
public<methods>; | ||
} | ||
########### 移动安全联盟 OAID 混淆要求 end ######## | ||
|
||
#京东sdk混淆规则 | ||
-keep class com.jd.ad.sdk.** { *; } |
Oops, something went wrong.