Commit bddfcbcd authored by mengcuiguang's avatar mengcuiguang

添加三方广告lib

parent 87d78777
......@@ -13,6 +13,7 @@
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/library_ad" />
<option value="$PROJECT_DIR$/library_base" />
<option value="$PROJECT_DIR$/mvvmhabit" />
</set>
......
......@@ -80,6 +80,7 @@ dependencies {
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
api project(':library_base')
api project(':library_ad')
......
plugins {
id 'com.android.library'
id 'kotlin-android'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
// 快手
api(name: 'kssdk-ad-3.3.9', ext: 'aar')
// 穿山甲 GroMore
// mediation_ad_sdk
api(name: 'mediation_ad_sdk_2.8.0.2', ext: 'aar')
api(name: 'gdt_adapter_4.351.1221.3', ext: 'aar')
api(name: 'ks_adapter_3.3.9.2', ext: 'aar')
// 穿山甲广告 版本3.6.1.3
api(name: 'open_ad_sdk_3.6.1.3', ext: 'aar')
// 广点通广告 腾讯
api(name: 'GDTSDK.unionNormal.4.351.1221', ext: 'aar')
// OneWay
api(name: 'oneway-common-core-1.0.10', ext: 'aar')
// 闪电盒子
api(name: 'wannuosili_ad_2.2.0', ext: 'aar')
}
\ No newline at end of file
# 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
\ No newline at end of file
package com.mints.library_ad
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.mints.library_ad.test", appContext.packageName)
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mints.library_ad">
</manifest>
\ No newline at end of file
package com.mints.library_ad
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
\ No newline at end of file
#Thu Jul 01 20:01:23 CST 2021
VERSION_BUILD=2461
#Fri Jul 02 14:23:21 CST 2021
VERSION_BUILD=2465
include ':library_ad'
include ':library_base'
include ':mvvmhabit'
include ':app'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment