diff --git a/.gitignore b/.gitignore index c6cbe56..3a2358d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,36 @@ -*.iml -.gradle -/local.properties -/.idea/workspace.xml -/.idea/libraries +# built application files +*.apk +*.ap_ + +# Mac files .DS_Store -/build -/captures + +# files for the dex VM +*.dex + +# Java class files +*.class + +# generated files +bin/ +gen/ + +# Ignore gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ +proguard-project.txt + +# Eclipse files +.project +.classpath +.settings/ + +# Android Studio/IDEA +*.iml +.idea \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index 96cc43e..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml deleted file mode 100644 index e7bedf3..0000000 --- a/.idea/copyright/profiles_settings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index 97626ba..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml deleted file mode 100644 index 7ac24c7..0000000 --- a/.idea/gradle.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 5d19981..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 17e3cf1..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index f67e4dc..863d1ac 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,13 +1,14 @@ apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' android { - compileSdkVersion 23 - buildToolsVersion "23.0.3" + compileSdkVersion 30 + buildToolsVersion "30.0.3" defaultConfig { applicationId "com.jjoe64.motiondetection" minSdkVersion 15 - targetSdkVersion 21 + targetSdkVersion 30 versionCode 1 versionName "1.0" } @@ -20,7 +21,8 @@ android { } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:23.4.0' + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation project(path: ':motion-detection') + testImplementation 'junit:junit:4.12' + implementation "androidx.appcompat:appcompat:$appcompat_version" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e31d240..ad5e9e1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,12 +2,6 @@ - - - - - - Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/motion-detection/src/main/AndroidManifest.xml b/motion-detection/src/main/AndroidManifest.xml new file mode 100644 index 0000000..cf7448b --- /dev/null +++ b/motion-detection/src/main/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/app/src/main/java/com/jjoe64/motiondetection/motiondetection/AggregateLumaMotionDetection.java b/motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/AggregateLumaMotionDetection.java similarity index 100% rename from app/src/main/java/com/jjoe64/motiondetection/motiondetection/AggregateLumaMotionDetection.java rename to motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/AggregateLumaMotionDetection.java diff --git a/app/src/main/java/com/jjoe64/motiondetection/motiondetection/Comparer.java b/motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/Comparer.java similarity index 100% rename from app/src/main/java/com/jjoe64/motiondetection/motiondetection/Comparer.java rename to motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/Comparer.java diff --git a/app/src/main/java/com/jjoe64/motiondetection/motiondetection/IMotionDetection.java b/motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/IMotionDetection.java similarity index 100% rename from app/src/main/java/com/jjoe64/motiondetection/motiondetection/IMotionDetection.java rename to motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/IMotionDetection.java diff --git a/app/src/main/java/com/jjoe64/motiondetection/motiondetection/ImageProcessing.java b/motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/ImageProcessing.java similarity index 100% rename from app/src/main/java/com/jjoe64/motiondetection/motiondetection/ImageProcessing.java rename to motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/ImageProcessing.java diff --git a/app/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetector.java b/motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetector.java similarity index 100% rename from app/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetector.java rename to motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetector.java diff --git a/app/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetectorCallback.java b/motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetectorCallback.java similarity index 100% rename from app/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetectorCallback.java rename to motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/MotionDetectorCallback.java diff --git a/app/src/main/java/com/jjoe64/motiondetection/motiondetection/State.java b/motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/State.java similarity index 100% rename from app/src/main/java/com/jjoe64/motiondetection/motiondetection/State.java rename to motion-detection/src/main/java/com/jjoe64/motiondetection/motiondetection/State.java diff --git a/settings.gradle b/settings.gradle index e7b4def..b1474d6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,3 @@ +rootProject.name = "android-motion-detection" include ':app' +include ':motion-detection' \ No newline at end of file