-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Migrated project to new Android project folder and file structure
- Updated dependencies - Solved library conflicts - Added separate project and module `build.gradle` files, as per the current Android documentation - Updated `gradle.properties` and created `settings.gradle` files, to follow the current Android guidelines - Deleted obsolete files and classes
- Loading branch information
1 parent
62a1ce1
commit 083a4d6
Showing
141 changed files
with
2,483 additions
and
2,968 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
/build |
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,38 @@ | ||
plugins { | ||
id 'com.android.application' | ||
} | ||
|
||
dependencies { | ||
implementation 'com.quickbirdstudios:opencv:3.4.15' | ||
implementation 'androidx.appcompat:appcompat:1.5.1' | ||
implementation 'androidx.preference:preference:1.2.0' | ||
implementation 'com.google.android.material:material:1.6.1' | ||
api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1" | ||
} | ||
|
||
android { | ||
namespace 'gr.scify.icsee' | ||
compileSdkVersion 32 | ||
defaultConfig { | ||
applicationId "gr.scify.icsee" | ||
minSdkVersion 16 | ||
targetSdkVersion 32 | ||
versionCode 13 | ||
versionName "4.0.1" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
buildFeatures { | ||
viewBinding true | ||
} | ||
|
||
} |
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,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
114 changes: 57 additions & 57 deletions
114
src/gr/scify/icsee/ImgViewerActivity.java → ...ava/gr/scify/icsee/ImgViewerActivity.java
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,57 +1,57 @@ | ||
package gr.scify.icsee; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.graphics.Bitmap; | ||
import android.graphics.BitmapFactory; | ||
import android.os.Bundle; | ||
import android.view.Menu; | ||
import android.widget.ImageView; | ||
|
||
import gr.scify.icsee.events.SimpleGestureFilter; | ||
import gr.scify.icsee.events.SimpleGestureFilter.SimpleGestureListener; | ||
|
||
public class ImgViewerActivity extends Activity implements SimpleGestureListener { | ||
public final static String IMG_ITEM = "photo"; | ||
|
||
protected ImageView ivCur; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_img_viewer); | ||
Intent iCaller = getIntent(); | ||
byte[] baBmp = iCaller.getByteArrayExtra(IMG_ITEM); | ||
Bitmap bmp = BitmapFactory.decodeByteArray(baBmp, 0, baBmp.length); | ||
ivCur = (ImageView)findViewById(R.id.processedImageView); | ||
ivCur.setImageBitmap(bmp); | ||
new SimpleGestureFilter(this, this); | ||
} | ||
|
||
@Override | ||
public void onDoubleTap() { | ||
finish(); | ||
} | ||
|
||
@Override | ||
public void onLongPress() { | ||
// Ignore | ||
} | ||
|
||
@Override | ||
public void onSingleTapUp() { | ||
// Ignore | ||
} | ||
@Override | ||
public void onSwipe(int direction) { | ||
// Ignore | ||
} | ||
|
||
@Override | ||
public boolean onCreateOptionsMenu(Menu menu) { | ||
// Inflate the menu; this adds items to the action bar if it is present. | ||
getMenuInflater().inflate(R.menu.img_viewer, menu); | ||
return true; | ||
} | ||
|
||
} | ||
package gr.scify.icsee; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.graphics.Bitmap; | ||
import android.graphics.BitmapFactory; | ||
import android.os.Bundle; | ||
import android.view.Menu; | ||
import android.widget.ImageView; | ||
|
||
import gr.scify.icsee.events.SimpleGestureFilter; | ||
import gr.scify.icsee.events.SimpleGestureFilter.SimpleGestureListener; | ||
|
||
public class ImgViewerActivity extends Activity implements SimpleGestureListener { | ||
public final static String IMG_ITEM = "photo"; | ||
|
||
protected ImageView ivCur; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_img_viewer); | ||
Intent iCaller = getIntent(); | ||
byte[] baBmp = iCaller.getByteArrayExtra(IMG_ITEM); | ||
Bitmap bmp = BitmapFactory.decodeByteArray(baBmp, 0, baBmp.length); | ||
ivCur = (ImageView)findViewById(R.id.processedImageView); | ||
ivCur.setImageBitmap(bmp); | ||
new SimpleGestureFilter(this, this); | ||
} | ||
|
||
@Override | ||
public void onDoubleTap() { | ||
finish(); | ||
} | ||
|
||
@Override | ||
public void onLongPress() { | ||
// Ignore | ||
} | ||
|
||
@Override | ||
public void onSingleTapUp() { | ||
// Ignore | ||
} | ||
@Override | ||
public void onSwipe(int direction) { | ||
// Ignore | ||
} | ||
|
||
@Override | ||
public boolean onCreateOptionsMenu(Menu menu) { | ||
// Inflate the menu; this adds items to the action bar if it is present. | ||
getMenuInflater().inflate(R.menu.img_viewer, menu); | ||
return true; | ||
} | ||
|
||
} |
Oops, something went wrong.