Skip to content

Commit 9b49f91

Browse files
committed
first init
0 parents  commit 9b49f91

File tree

246 files changed

+14141
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+14141
-0
lines changed

.gitignore

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Built application 文件
2+
*.apk
3+
*.ap_
4+
5+
# ART/Dalvik VM 文件
6+
*.dex
7+
8+
# Java class 文件
9+
*.class
10+
11+
# Generated 文件夹
12+
bin/
13+
gen/
14+
out/
15+
16+
# Gradle files
17+
.gradle/
18+
build/
19+
20+
# 本地配置文件 (sdk path, etc)
21+
local.properties
22+
23+
# Eclipse生成的Proguard文件夹
24+
proguard/
25+
26+
# 日志文件
27+
*.log
28+
29+
# Android Studio导航编辑器临时文件
30+
.navigation/
31+
32+
# Android Studio captures folder
33+
captures/
34+
35+
# IntelliJ (IDE配置文件)
36+
*.iml
37+
.idea/workspace.xml
38+
.idea/tasks.xml
39+
.idea/gradle.xml
40+
.idea/assetWizardSettings.xml
41+
.idea/dictionaries
42+
.idea/libraries
43+
.idea/caches
44+
45+
# 密钥储存库文件
46+
# 如果您不想检查密钥库文件,请取消注释以下行
47+
#*.jks
48+
49+
# 在Android Studio 2.2及更高版本中生成的外部原生构建文件夹
50+
.externalNativeBuild
51+
52+
# Google服务 (e.g. APIs or Firebase)
53+
google-services.json
54+
55+
# Freeline (Android 平台上的秒级编译方案)
56+
freeline.py
57+
freeline/
58+
freeline_project_description.json
59+
60+
# fastlane (自动化打包框架)
61+
fastlane/report.xml
62+
fastlane/Preview.html
63+
fastlane/screenshots
64+
fastlane/test_output
65+
fastlane/readme.md
66+
67+
# .gitignore_global
68+
####################################
69+
######## OS generated files ########
70+
####################################
71+
.DS_Store
72+
.DS_Store?
73+
*.swp
74+
._*
75+
.Spotlight-V100
76+
.Trashes
77+
Icon?
78+
ehthumbs.db
79+
Thumbs.db
80+
####################################
81+
############# Packages #############
82+
####################################
83+
*.7z
84+
*.dmg
85+
*.gz
86+
*.iso
87+
*.jar
88+
*.rar
89+
*.tar
90+
*.zip

build.gradle

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
def version = '1.0'
4+
5+
ext {
6+
//统一版本号,同时使用在渠道版本号信息中
7+
EasyAds_version = version
8+
9+
//是否进行SDK版本发布,此开关影响了build.gradle中的aar引用配置
10+
releaseSDK = false
11+
}
12+
13+
14+
buildscript {
15+
repositories {
16+
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
17+
google()
18+
maven { url "https://jitpack.io" }
19+
// 配置HUAWEI Ads SDK的Maven仓地址
20+
maven { url 'https://developer.huawei.com/repo/' }
21+
maven { url "https://plugins.gradle.org/m2/" }
22+
}
23+
dependencies {
24+
classpath 'com.android.tools.build:gradle:3.6.3'
25+
classpath 'com.github.kezong:fat-aar:1.3.5'
26+
27+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
28+
29+
// NOTE: Do not place your application dependencies here; they belong
30+
// in the individual module build.gradle files
31+
}
32+
}
33+
34+
allprojects {
35+
repositories {
36+
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
37+
google()
38+
maven { url "https://jitpack.io" }
39+
// 配置HUAWEI Ads SDK的Maven仓地址
40+
maven { url 'https://developer.huawei.com/repo/' }
41+
flatDir {
42+
dirs 'libs'
43+
}
44+
}
45+
}
46+
47+
task clean(type: Delete) {
48+
delete rootProject.buildDir
49+
}

easyads/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

easyads/build.gradle

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
apply plugin: 'com.android.library'
2+
apply plugin: 'com.kezong.fat-aar'
3+
4+
//maven依赖的项目名称
5+
def pomName = "easyads-core"
6+
def extVersionName = ""
7+
def VersionName = "${rootProject.ext.EasyAds_version}${extVersionName}"
8+
def VersionCode = 1
9+
10+
def outputName = pomName + "_" + VersionName + ".aar"
11+
12+
android {
13+
compileSdkVersion 29
14+
15+
16+
defaultConfig {
17+
minSdkVersion 14
18+
targetSdkVersion 29
19+
versionCode VersionCode
20+
versionName VersionName
21+
22+
// 混淆配置自动同步到接入方
23+
consumerProguardFiles 'proguard-rules.pro'
24+
}
25+
26+
buildTypes {
27+
debug {
28+
minifyEnabled false
29+
}
30+
release {
31+
minifyEnabled false
32+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
33+
}
34+
}
35+
lintOptions {
36+
abortOnError false
37+
}
38+
println pomName + " VersionName = " + VersionName
39+
40+
}
41+
42+
tasks.withType(Javadoc) {
43+
options.addStringOption('Xdoclint:none', '-quiet')
44+
options.addStringOption('encoding', 'UTF-8')
45+
options.addStringOption('charSet', 'UTF-8')
46+
}
47+
48+
49+
repositories {
50+
flatDir {
51+
dirs 'libs'
52+
}
53+
}
54+
55+
dependencies {
56+
compileOnly 'com.android.support:appcompat-v7:28.0.0'
57+
testImplementation 'junit:junit:4.12'
58+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
59+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
60+
// the needed aars are here
61+
compileOnly(name: 'open_ad_sdk_3803', ext: 'aar')
62+
compileOnly(name: 'GDTSDK_4422', ext: 'aar')
63+
compileOnly(name: 'Baidu_MobAds_SDK_9131', ext: 'aar')
64+
compileOnly(name: 'kssdk-ad_3310', ext: 'aar')
65+
}
66+
67+
68+
android.libraryVariants.all { variant ->
69+
variant.outputs.all {
70+
outputFileName = outputName
71+
}
72+
}
73+
74+
981 KB
Binary file not shown.

easyads/libs/GDTSDK_4422.aar

1.56 MB
Binary file not shown.

easyads/libs/kssdk-ad_3310.aar

2.21 MB
Binary file not shown.

easyads/libs/open_ad_sdk_3803.aar

5.73 MB
Binary file not shown.

easyads/proguard-rules.pro

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
22+
23+
-keep class com.bytedance.sdk.openadsdk.** { *; }
24+
-keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;}
25+
-keep class com.ss.sys.ces.* {*;}
26+
-keep class com.ss.android.**{*;}
27+
-keep class com.pgl.sys.ces.* {*;}
28+
29+
-keep class com.qq.e.** {
30+
public protected *;
31+
}
32+
-keep class android.support.v4.app.NotificationCompat**{
33+
public *;
34+
}
35+
-keep class com.bun.miitmdid.core.** {*;}
36+
-keep class com.easyads.supplier.** {*;}
37+
38+
#oaid 混淆部分
39+
-keep class com.bun.miitmdid.** {*;}
40+
-dontwarn XI.**
41+
-keep class XI.** {*;}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.easyads.core" >
3+
4+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
5+
</manifest>

0 commit comments

Comments
 (0)