Skip to content

Commit

Permalink
完善插件plugin配置
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchong211 committed Feb 28, 2022
1 parent 11884e4 commit b0bc308
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AptHelper/api-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'com.github.dcendents.android-maven'

sourceCompatibility = "1.8"
targetCompatibility = "1.8"
Expand Down
4 changes: 4 additions & 0 deletions CommonLib/ApplicationLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation rootProject.ext.dependencies["appcompat"]
implementation rootProject.ext.dependencies["annotation"]


implementation project(path: ':api-compiler')
implementation project(path: ':api-manager')
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@
import android.content.Context;
import android.content.res.Configuration;

import java.util.ServiceLoader;
import com.yc.api.compiler.getIt.ServiceLoader;
import com.yc.api.getIt.ServiceProvider;


/**
* 分发 lifecycle 时确保各个 listener 出现异常时不相互影响
*/
@ServiceProvider(value = ApplicationListener.class, priority = -1)
public class LaunchApplicationListener extends AbstractLifecycleListener {

private final Iterable<ApplicationListener> mApplicationListener =
ServiceLoader.load(ApplicationListener.class);
private Iterable<AppLifecycleListener> mAppListener =
private final Iterable<AppLifecycleListener> mAppListener =
ServiceLoader.load(AppLifecycleListener.class);


Expand Down

0 comments on commit b0bc308

Please sign in to comment.