readme说明

This commit is contained in:
姜珂 2025-07-09 16:38:10 +08:00
parent dc9cd44256
commit 401aab7fe5
3 changed files with 23 additions and 12 deletions

View File

@ -1,8 +0,0 @@
package com.tfq.library.app;
import android.app.Application;
public interface IConstituteApp {
//初始化
void onCreate(Application application);
}

View File

@ -1,6 +1,6 @@
# 广告模块集成指南 # BASE And AD模块集成指南
#### 版本 1.0.0 #### base-lib and ad 集成指南
#### 项目gradle #### 项目gradle
```java ```java
maven { maven {
@ -14,12 +14,31 @@ maven {
#### 模块的gradle #### 模块的gradle
```java ```java
implementation ('com.your.group:lib-name:1.0.0@aar') {
implementation ('com.chuangketie.jk:base-lib:1.0.0@aar') {
transitive = true // 确保嵌套依赖被加载
}
implementation ('com.chuangketie.jk:ad-lib:1.0.0@aar') {
transitive = true // 确保嵌套依赖被加载 transitive = true // 确保嵌套依赖被加载
} }
``` ```
## BASE
```java
new LibraryApp.Builder(this)
.addSlot(LOG_PRINT, "log_print")
.addSlot(ANIMATION_SKIP,"0")
.initialize();//初始化
```
| 参数 | 类型 | 必填 | 说明 |
|-----------------|---------|------|----------|
| context | Context | ✓ | 应用上下文 |
| LOG_PRINT | String | ✕ | Log打印 |
| ANIMATION_SKIP | String | ✕ | 页面跳转动画 |
## AD
### 基础配置(必填项) ### 基础配置(必填项)
```java ```java
new AdApp.Builder(this, Constants.APP_NAME, getChannel(), getAppSplash()) new AdApp.Builder(this, Constants.APP_NAME, getChannel(), getAppSplash())

File diff suppressed because one or more lines are too long