Commit 3b981128a665de69498c1425fc3f3ebdc198c844
1 parent
0a7182e8
取消开机启动广播接收
Showing
3 changed files
with
8 additions
and
9 deletions
config.gradle
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" /> | ... | ... |