-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.4.0 - Modern Serviceless Notification Updates, ADB Instructions for…
… "Time Remaining", Modern Activity and Preference Themes
- Loading branch information
Tyler Williamson
committed
Apr 14, 2022
1 parent
00843f9
commit 0ac6d18
Showing
74 changed files
with
2,751 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,79 @@ | ||
# Built application files | ||
app/release/ | ||
*.apk | ||
*.ap_ | ||
*.aab | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
# Android Studio captures folder | ||
captures/ | ||
|
||
# IntelliJ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea | ||
.DS_Store | ||
/build | ||
/captures | ||
.idea/ | ||
#.idea/workspace.xml | ||
#.idea/tasks.xml | ||
#.idea/gradle.xml | ||
#.idea/assetWizardSettings.xml | ||
#.idea/dictionaries | ||
#.idea/libraries | ||
#.idea/caches | ||
|
||
# Keystore files | ||
# Uncomment the following lines if you do not want to check your keystore files in. | ||
#*.jks | ||
#*.keystore | ||
|
||
# External native build folder generated in Android Studio 2.2 and later | ||
.externalNativeBuild | ||
|
||
# Google Services (e.g. APIs or Firebase) | ||
# google-services.json | ||
|
||
# Freeline | ||
freeline.py | ||
freeline/ | ||
freeline_project_description.json | ||
|
||
# fastlane | ||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots | ||
fastlane/test_output | ||
fastlane/readme.md | ||
|
||
# Version control | ||
vcs.xml | ||
|
||
# lint | ||
lint/intermediates/ | ||
lint/generated/ | ||
lint/outputs/ | ||
lint/tmp/ | ||
# lint/reports/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<img src="./fastlane/metadata/android/en-US/images/icon.png" alt="icon" height="60"> BatteryNotification | ||
================= | ||
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/)[![GitHub Release](https://img.shields.io/github/release/TylerWilliamson/BatteryNotification.svg?style=flat)]() | ||
|
||
Battery stats at a glance! | ||
|
||
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" | ||
alt="Get it on F-Droid" | ||
height="80">](https://f-droid.org/packages/com.ominous.batterynotification/) | ||
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" | ||
alt="Get it on Google Play" | ||
height="80">](https://play.google.com/store/apps/details?id=com.ominous.batterynotification) | ||
|
||
Description | ||
--- | ||
|
||
Always Free (No IAPs or Ads) and Always Open Source | ||
|
||
Persistent Notification Includes: | ||
* Battery Level (Including Color Indicator for Android 5.0+) | ||
* Battery Temperature (in Fahrenheit or Celcius) | ||
* Charging State | ||
* Battery Health | ||
* Charging/Discharging Amperage (for Android 5.0+) | ||
* (Root/ADB Only for Android 5.0+) Time Remaining Until Fully Charged or Discharged | ||
|
||
Required Permissions: | ||
* **android.permission.RECEIVE_BOOT_COMPLETED** - Used to restart the notification after rebooting the device | ||
|
||
Optional Permissions: | ||
* **android.permission.ACCESS_SUPERUSER** - Used to give the app the android.permission.BATTERY_STATS permission | ||
* **android.permission.BATTERY_STATS** - Used to access the BatteryStats object to get the time remaining until fully charged or discharged | ||
* **android.permission.ACCESS_WIFI_STATE** - Used to access the BatteryStats object to get the time remaining until fully charged or discharged | ||
|
||
|
||
License | ||
--- | ||
``` | ||
Copyright 2016 - 2022 Tyler Williamson | ||
This file is part of BatteryNotification. | ||
BatteryNotification is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
BatteryNotification is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with BatteryNotification. If not, see <https://www.gnu.org/licenses/>. | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,60 @@ | ||
apply plugin: 'com.android.application' | ||
/* | ||
* Copyright 2016 - 2022 Tyler Williamson | ||
* | ||
* This file is part of BatteryNotification. | ||
* | ||
* BatteryNotification is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* BatteryNotification is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with BatteryNotification. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "24.0.0" | ||
apply plugin: "com.android.application" | ||
|
||
android { | ||
compileSdkVersion 31 | ||
defaultConfig { | ||
applicationId "com.ominous.batterynotification" | ||
minSdkVersion 17 | ||
|
||
targetSdkVersion 24 | ||
versionCode 7 | ||
versionName "1.1.1" | ||
targetSdkVersion 31 | ||
versionCode 10 | ||
versionName "1.4.0" | ||
} | ||
buildTypes { | ||
debug { | ||
applicationIdSuffix ".debug" | ||
versionNameSuffix "-DEBUG" | ||
} | ||
release { | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" | ||
} | ||
} | ||
compileOptions { | ||
compileOptions { | ||
targetCompatibility 1.8 | ||
sourceCompatibility 1.8 | ||
} | ||
} | ||
signingConfigs { | ||
debug { | ||
storeFile file('../debug.keystore') | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
provided fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation "androidx.activity:activity:1.4.0" | ||
implementation "androidx.preference:preference:1.2.0" | ||
implementation "androidx.work:work-runtime:2.7.1" | ||
//We're going deeper | ||
implementation "com.github.tiann:FreeReflection:9bc252d" | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.