Commit 3b981128a665de69498c1425fc3f3ebdc198c844

Authored by 朱显松
1 parent 0a7182e8

取消开机启动广播接收

config.gradle
@@ -21,7 +21,7 @@ ext { @@ -21,7 +21,7 @@ ext {
21 //编译方式 21 //编译方式
22 debug : false, 22 debug : false,
23 //版本号 23 //版本号
24 - version: "1.3.2", 24 + version: "1.3.4",
25 //Lib库前缀 25 //Lib库前缀
26 packeg : "com.cnlive.module", 26 packeg : "com.cnlive.module",
27 //Lib库名称 27 //Lib库名称
moudle_pedometer/maven_push.gradle
@@ -3,18 +3,17 @@ apply plugin: 'maven' @@ -3,18 +3,17 @@ apply plugin: 'maven'
3 uploadArchives() { 3 uploadArchives() {
4 repositories { 4 repositories {
5 mavenDeployer { 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 repository(url: maven.mavenMixedUrl) { 9 repository(url: maven.mavenMixedUrl) {
11 authentication(userName: maven.mavenUserName, password: maven.mavenPwd) 10 authentication(userName: maven.mavenUserName, password: maven.mavenPwd)
12 } 11 }
13 //发布信息(包名/别名/版本) 12 //发布信息(包名/别名/版本)
14 pom.project { 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 pom.whenConfigured { pom -> 18 pom.whenConfigured { pom ->
20 pom.dependencies.clear() 19 pom.dependencies.clear()
moudle_pedometer/src/main/AndroidManifest.xml
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 xmlns:tools="http://schemas.android.com/tools" 3 xmlns:tools="http://schemas.android.com/tools"
4 package="com.example.moudle_pedometer"> 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 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> 7 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
8 <uses-permission android:name="android.permission.WAKE_LOCK" /> 8 <uses-permission android:name="android.permission.WAKE_LOCK" />
9 <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> <!-- 计歩需要的权限 --> 9 <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> <!-- 计歩需要的权限 -->
@@ -105,7 +105,7 @@ @@ -105,7 +105,7 @@
105 <intent-filter> 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 <action android:name="android.intent.action.DATE_CHANGED" /> 109 <action android:name="android.intent.action.DATE_CHANGED" />
110 <action android:name="android.intent.action.MEDIA_MOUNTED" /> 110 <action android:name="android.intent.action.MEDIA_MOUNTED" />
111 <action android:name="android.intent.action.USER_PRESENT" /> 111 <action android:name="android.intent.action.USER_PRESENT" />
@@ -209,7 +209,7 @@ @@ -209,7 +209,7 @@
209 <intent-filter> 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 <action android:name="android.intent.action.DATE_CHANGED" /> 213 <action android:name="android.intent.action.DATE_CHANGED" />
214 <action android:name="android.intent.action.MEDIA_MOUNTED" /> 214 <action android:name="android.intent.action.MEDIA_MOUNTED" />
215 <action android:name="android.intent.action.USER_PRESENT" /> 215 <action android:name="android.intent.action.USER_PRESENT" />