Commit 3b981128a665de69498c1425fc3f3ebdc198c844

Authored by 朱显松
1 parent 0a7182e8

取消开机启动广播接收

config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "1.3.2",
  24 + version: "1.3.4",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.module",
27 27 //Lib库名称
... ...
moudle_pedometer/maven_push.gradle
... ... @@ -3,18 +3,17 @@ apply plugin: 'maven'
3 3 uploadArchives() {
4 4 repositories {
5 5 mavenDeployer {
6   - def lib = moudle_subscription
7 6 //发布环境(正式/测试)
8   - android.defaultPublishConfig lib.debug ? "debug" : "release"
  7 + android.defaultPublishConfig moudle_subscription.debug ? "debug" : "release"
9 8 //发布渠道(地址/账号)
10 9 repository(url: maven.mavenMixedUrl) {
11 10 authentication(userName: maven.mavenUserName, password: maven.mavenPwd)
12 11 }
13 12 //发布信息(包名/别名/版本)
14 13 pom.project {
15   - groupId lib.packeg
16   - artifactId lib.name
17   - version = lib.debug ? lib.version.concat("-SNAPSHOT") : lib.version
  14 + groupId moudle_subscription.packeg
  15 + artifactId moudle_subscription.name
  16 + version = moudle_subscription.debug ? moudle_subscription.version.concat("-SNAPSHOT") : moudle_subscription.version
18 17 }
19 18 pom.whenConfigured { pom ->
20 19 pom.dependencies.clear()
... ...
moudle_pedometer/src/main/AndroidManifest.xml
... ... @@ -3,7 +3,7 @@
3 3 xmlns:tools="http://schemas.android.com/tools"
4 4 package="com.example.moudle_pedometer">
5 5  
6   - <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  6 +<!-- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />-->
7 7 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
8 8 <uses-permission android:name="android.permission.WAKE_LOCK" />
9 9 <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> <!-- 计歩需要的权限 -->
... ... @@ -105,7 +105,7 @@
105 105 <intent-filter>
106 106  
107 107 <!-- 系统启动完成后会调用 -->
108   - <action android:name="android.intent.action.BOOT_COMPLETED" />
  108 +<!-- <action android:name="android.intent.action.BOOT_COMPLETED" />-->
109 109 <action android:name="android.intent.action.DATE_CHANGED" />
110 110 <action android:name="android.intent.action.MEDIA_MOUNTED" />
111 111 <action android:name="android.intent.action.USER_PRESENT" />
... ... @@ -209,7 +209,7 @@
209 209 <intent-filter>
210 210  
211 211 <!-- 系统启动完成后会调用 -->
212   - <action android:name="android.intent.action.BOOT_COMPLETED" />
  212 +<!-- <action android:name="android.intent.action.BOOT_COMPLETED" />-->
213 213 <action android:name="android.intent.action.DATE_CHANGED" />
214 214 <action android:name="android.intent.action.MEDIA_MOUNTED" />
215 215 <action android:name="android.intent.action.USER_PRESENT" />
... ...