Skip to content

Commit 13ea6c8

Browse files
committed
Initial commit
0 parents  commit 13ea6c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3092
-0
lines changed

.gitignore

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Created by https://www.gitignore.io/api/android,osx,windows,linux,intellij,java
2+
3+
### Android ###
4+
# Generated files
5+
# Gradle files
6+
.gradle/
7+
build/
8+
9+
# Local configuration file (sdk path, etc)
10+
local.properties
11+
12+
# Log Files
13+
# Android Studio Navigation editor temp files
14+
# Android Studio captures folder
15+
# Intellij
16+
*.iml
17+
.idea/workspace.xml
18+
.idea/gradle.xml
19+
.idea/dictionaries
20+
.idea/libraries
21+
22+
# Keystore files
23+
# External native build folder generated in Android Studio 2.2 and later
24+
# Google Services (e.g. APIs or Firebase)
25+
# Freeline
26+
### Android Patch ###
27+
### IntelliJ ###
28+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
29+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
30+
31+
# User-specific stuff:
32+
# Sensitive or high-churn files:
33+
# Mongo Explorer plugin:
34+
## File-based project format:
35+
## Plugin-specific files:
36+
37+
# IntelliJ
38+
# mpeltonen/sbt-idea plugin
39+
# JIRA plugin
40+
# Cursive Clojure plugin
41+
# Crashlytics plugin (for Android Studio and IntelliJ)
42+
### Intellij Patch ###
43+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
44+
45+
# *.iml
46+
# modules.xml
47+
# .idea/misc.xml
48+
# *.ipr
49+
50+
# Sonarlint plugin
51+
### Java ###
52+
# Compiled class file
53+
54+
# Log file
55+
56+
# BlueJ files
57+
# Mobile Tools for Java (J2ME)
58+
# Package Files #
59+
*.jar
60+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
61+
### Linux ###
62+
# temporary files which can be created if a process still has a handle open of a deleted file
63+
# KDE directory preferences
64+
# Linux trash folder which might appear on any partition or disk
65+
# .nfs files are created when an open file is removed but is still being accessed
66+
### OSX ###
67+
# Icon must end with two \r
68+
# Thumbnails
69+
# Files that might appear in the root of a volume
70+
# Directories potentially created on remote AFP share
71+
### Windows ###
72+
# Windows thumbnail cache files
73+
# Folder config file
74+
# Recycle Bin used on file shares
75+
# Windows Installer files
76+
# Windows shortcuts
77+
# End of https://www.gitignore.io/api/android,osx,windows,linux,intellij,java

.idea/compiler.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copyright/profiles_settings.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle_extensions.xml

+425
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.2"
6+
defaultConfig {
7+
applicationId "com.sapuseven.noticap"
8+
minSdkVersion 19
9+
targetSdkVersion 25
10+
versionCode 1
11+
versionName "1.0.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
vectorDrawables.useSupportLibrary = true
14+
}
15+
buildTypes {
16+
release {
17+
minifyEnabled false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
}
22+
23+
dependencies {
24+
compile fileTree(dir: 'libs', include: ['*.jar'])
25+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
26+
exclude group: 'com.android.support', module: 'support-annotations'
27+
})
28+
compile 'com.android.support:appcompat-v7:25.3.1'
29+
compile 'com.android.support:support-v4:25.3.1'
30+
compile 'com.android.support:support-vector-drawable:25.3.1'
31+
compile 'com.android.support:design:25.3.1'
32+
compile 'com.jcraft:jzlib:1.1.3'
33+
compile 'com.jcraft:jsch:0.1.54'
34+
testCompile 'junit:junit:4.12'
35+
}

app/proguard-rules.pro

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /home/paul/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.sapuseven.noticap;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.assertEquals;
11+
12+
/**
13+
* Instrumentation test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() throws Exception {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.sapuseven.noticap", appContext.getPackageName());
25+
}
26+
}

app/src/main/AndroidManifest.xml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
package="com.sapuseven.noticap">
6+
7+
<uses-permission android:name="android.permission.INTERNET"/>
8+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
9+
10+
<application
11+
android:allowBackup="true"
12+
android:fullBackupContent="@xml/backup_descriptor"
13+
android:icon="@mipmap/ic_launcher"
14+
android:label="@string/app_name"
15+
android:supportsRtl="true"
16+
android:theme="@style/AppTheme"
17+
tools:ignore="GoogleAppIndexingWarning">
18+
<activity
19+
android:name=".activity.SettingsActivity"
20+
android:label="@string/app_name">
21+
<intent-filter>
22+
<action android:name="android.intent.action.MAIN"/>
23+
24+
<category android:name="android.intent.category.LAUNCHER"/>
25+
</intent-filter>
26+
</activity>
27+
28+
<service
29+
android:name=".service.NotificationListenerService4"
30+
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
31+
<intent-filter>
32+
<action android:name="android.service.notification.NotificationListenerService"/>
33+
</intent-filter>
34+
</service>
35+
36+
<activity
37+
android:name=".activity.AddSSHIdentityActivity"
38+
android:label="@string/title_activity_add_sshidentity"
39+
android:theme="@style/AppTheme">
40+
</activity>
41+
42+
<activity
43+
android:name=".activity.AddFilterRuleActivity"
44+
android:label="Add Filter Rule"
45+
android:theme="@style/AppTheme">
46+
</activity>
47+
</application>
48+
49+
</manifest>

0 commit comments

Comments
 (0)