ShihooWang / DaemonLibrary

Android后台保活,这里有你需要的所有姿势。2019,最新版本。
393 stars 82 forks source link

gradle引入jar后可以正常运行,不过是否需要在本地清单文件中添加library包中注册的activity、权限、广播、服务,为什么没添加不会报错 #11

Open yk007 opened 5 years ago

yk007 commented 5 years ago

<service android:name="com.shihoo.daemon.WatchDogService" android:process=":watch"/>

    <service
        android:name="com.shihoo.daemon.WatchDogService$WatchDogNotificationService"
        android:process=":watch"/>

    <activity
        android:name="com.shihoo.daemon.singlepixel.SinglePixelActivity"
        android:configChanges="keyboardHidden|orientation|screenSize|navigation|keyboard"
        android:excludeFromRecents="true"
        android:finishOnTaskLaunch="false"
        android:launchMode="singleInstance"
        android:theme="@style/SingleActivityStyle"
        android:process=":watch"/>

    <service android:name=".PlayMusicService"
        android:process=":watch"/>
ShihooWang commented 5 years ago

gradle会检查module或library中的manifest的相关信息,并将其合并到主程序的。