Skip to content

Commit dfd9571

Browse files
committed
version 2.3.4
Version 2.3.4 release
1 parent 5d22a9a commit dfd9571

File tree

216 files changed

+10618
-2
lines changed

Some content is hidden

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

216 files changed

+10618
-2
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ build/
2020
# Local configuration file (sdk path, etc)
2121
local.properties
2222

23+
# Windows thumbnail db
24+
Thumbs.db
25+
26+
# OSX files
27+
.DS_Store
28+
2329
# Proguard folder generated by Eclipse
2430
proguard/
2531

@@ -42,6 +48,15 @@ captures/
4248
.idea/libraries
4349
.idea/caches
4450

51+
# Android Studio
52+
**/*.iml
53+
.idea
54+
output.json
55+
56+
#NDK
57+
obj/
58+
.externalNativeBuild
59+
4560
# Keystore files
4661
# Uncomment the following line if you do not want to check your keystore files in.
4762
#*.jks

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
1-
# android-pdf-ocr-document-scanner
2-
Android simple PDF document scanner
1+
# Scan any paper documents into clear PDF with ease on Android
2+
3+
This is simple document scanner application which could scan any paper documents into clean and legible PDF (and image) files with ease on Android smartphones and tablets.
4+
5+
It has been build with [Document Scanning SDK](https://www.pixelnetica.com/products/document-scanning-sdk/document-scanner-api-features.html "Document Scanning SDK: Main Features and Benefits") (_DSSDK_) as a demo application for Android Studio.
6+
7+
__⚠️ Note.__
8+
Application source code provided __“as is”__ without warranties of any kind. It could be freely used in commercial product __only__ in case of commercial DSSDK license purchase.
9+
10+
## Documentation
11+
The documentation for DSSDK Android version can be found by the link below:
12+
13+
📖 [Pixelnetica Document Scanning SDK for Android documentation](https://pixelnetica.github.io/Document-Scanning-SDK-Documentation/Android/ "Document Scanning SDK for Android Documentation")
14+
15+
## License
16+
17+
By default application source code bundled with _Demo license_ which puts watermarks on resulted images.
18+
To get full featured _Free Trial license_ please [__contact us__](https://www.pixelnetica.com/products/document-scanning-sdk/sdk-support.html "Request information or Free Trial DSSDK license").
19+
20+
It is strictly prohibited to distribute, market, publish to application stores like, but not limited, AppStore, Google Play, etc or use other than for development, staging or testing purposes Pixelnetica DSSDK trial or demo licenses.
21+
22+
## About Pixelnetica Document Scanning SDK
23+
24+
[Pixelnetica Document Scanning SDK](https://www.pixelnetica.com/products/document-scanning-sdk/document-scanner-sdk.html "Document Scanning SDK: Overview") (_DSSDK_) provides developers with an intelligent, highly efficient toolkit, which offers an easy way to add image processing features that are optimized for document photos that are taken by a mobile device or document camera to their applications.
25+
26+
For more information about DSSDK main Features and Benefits please visit [Pixelnetica website](https://www.pixelnetica.com/products/document-scanning-sdk/document-scanner-api-features.html "Document Scanning SDK: Main Features and Benefits").
27+
28+
29+
## Have Questions, need Free Trial or Quotation?
30+
31+
Feel free to contact us to request free trial license, price quotation or in case of any inquires at [Pixelnetica DSSDK Support](https://www.pixelnetica.com/products/document-scanning-sdk/sdk-support.html "Contact Pixelnetica support for Free trial, Quotation or incase of any questions").

build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
buildscript {
4+
repositories {
5+
google()
6+
jcenter()
7+
}
8+
dependencies {
9+
classpath 'com.android.tools.build:gradle:3.3.1'
10+
classpath 'com.google.gms:google-services:4.2.0'
11+
12+
// NOTE: Do not place your application dependencies here; they belong
13+
// in the individual module build.gradle files
14+
}
15+
}
16+
17+
allprojects {
18+
repositories {
19+
google()
20+
jcenter()
21+
}
22+
}

cropDemo/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.gradle
2+
/local.properties
3+
/.idea/workspace.xml
4+
/.idea/libraries
5+
.DS_Store
6+
/build
7+
/captures

cropDemo/build.gradle

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
apply plugin: 'com.android.application'
2+
3+
def getGitHash = { ->
4+
def stdout = new ByteArrayOutputStream()
5+
exec {
6+
commandLine 'git', 'rev-parse', '--short', 'HEAD'
7+
standardOutput = stdout
8+
ignoreExitValue = true
9+
}
10+
return stdout.toString().trim()
11+
}
12+
13+
android {
14+
def gitHash
15+
try {
16+
gitHash = getGitHash()
17+
} catch (Exception w) {
18+
gitHash = ""
19+
}
20+
21+
// Using Java 8
22+
compileOptions {
23+
sourceCompatibility JavaVersion.VERSION_1_8
24+
targetCompatibility JavaVersion.VERSION_1_8
25+
}
26+
27+
signingConfigs {
28+
demo {
29+
keyAlias 'com.pixelnetica.cropdemo'
30+
keyPassword '123456'
31+
storeFile file("${rootDir}/demo.keystore.jks")
32+
storePassword '123456'
33+
}
34+
}
35+
36+
compileSdkVersion 28
37+
buildToolsVersion '28.0.3'
38+
defaultConfig {
39+
applicationId "com.pixelnetica.cropdemo"
40+
// NOTE: Don't change value here. Select build flavor
41+
buildConfigField "boolean", "DEVELOP", "false"
42+
buildConfigField "String", "GIT_HASH", "\"${gitHash}\""
43+
44+
minSdkVersion 19
45+
targetSdkVersion 28
46+
47+
versionCode 36
48+
versionName "2.3.4." + versionCode.toString()
49+
50+
ndk {
51+
abiFilters = ['armeabi-v7a', 'arm64-v8a', 'x86_64', 'x86']
52+
}
53+
54+
}
55+
buildTypes {
56+
debug {
57+
debuggable true
58+
jniDebuggable true
59+
}
60+
release {
61+
minifyEnabled true
62+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
63+
zipAlignEnabled true
64+
debuggable false
65+
jniDebuggable false
66+
}
67+
signed {
68+
initWith release
69+
matchingFallbacks = ['release']
70+
// To run release under IDE
71+
signingConfig signingConfigs.demo
72+
}
73+
74+
}
75+
flavorDimensions "default"
76+
productFlavors {
77+
core {
78+
dimension "default"
79+
}
80+
}
81+
82+
// Add build version to apk file name
83+
applicationVariants.all { variant ->
84+
variant.outputs.all {
85+
outputFileName = "${project.name}-${variant.flavorName}-${variant.versionCode}-${gitHash}.apk"
86+
}
87+
}
88+
}
89+
90+
repositories{
91+
flatDir{
92+
dirs 'libs'
93+
}
94+
maven {
95+
url 'http://repo.pixelnetica.com:8081/artifactory/libs-release'
96+
}
97+
}
98+
99+
dependencies {
100+
implementation('com.pixelnetica.sdk:scanning-release:2.3.4') { changing = true }
101+
implementation 'com.android.support:appcompat-v7:28.0.0'
102+
implementation 'com.android.support:preference-v14:28.0.0'
103+
implementation 'com.android.support:design:28.0.0'
104+
implementation 'com.android.support:gridlayout-v7:28.0.0'
105+
implementation 'com.android.support:support-core-ui:28.0.0'
106+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
107+
implementation 'com.android.support:support-annotations:28.0.0'
108+
}

cropDemo/gradle.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14+
15+
# When configured, Gradle will run in incubating parallel mode.
16+
# This option should only be used with decoupled projects. More details, visit
17+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18+
# org.gradle.parallel=true
48.7 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Wed Apr 10 15:27:10 PDT 2013
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

cropDemo/gradlew

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
#!/usr/bin/env bash
2+
3+
##############################################################################
4+
##
5+
## Gradle start up script for UN*X
6+
##
7+
##############################################################################
8+
9+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10+
DEFAULT_JVM_OPTS=""
11+
12+
APP_NAME="Gradle"
13+
APP_BASE_NAME=`basename "$0"`
14+
15+
# Use the maximum available, or set MAX_FD != -1 to use that value.
16+
MAX_FD="maximum"
17+
18+
warn ( ) {
19+
echo "$*"
20+
}
21+
22+
die ( ) {
23+
echo
24+
echo "$*"
25+
echo
26+
exit 1
27+
}
28+
29+
# OS specific support (must be 'true' or 'false').
30+
cygwin=false
31+
msys=false
32+
darwin=false
33+
case "`uname`" in
34+
CYGWIN* )
35+
cygwin=true
36+
;;
37+
Darwin* )
38+
darwin=true
39+
;;
40+
MINGW* )
41+
msys=true
42+
;;
43+
esac
44+
45+
# For Cygwin, ensure paths are in UNIX format before anything is touched.
46+
if $cygwin ; then
47+
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48+
fi
49+
50+
# Attempt to set APP_HOME
51+
# Resolve links: $0 may be a link
52+
PRG="$0"
53+
# Need this for relative symlinks.
54+
while [ -h "$PRG" ] ; do
55+
ls=`ls -ld "$PRG"`
56+
link=`expr "$ls" : '.*-> \(.*\)$'`
57+
if expr "$link" : '/.*' > /dev/null; then
58+
PRG="$link"
59+
else
60+
PRG=`dirname "$PRG"`"/$link"
61+
fi
62+
done
63+
SAVED="`pwd`"
64+
cd "`dirname \"$PRG\"`/" >&-
65+
APP_HOME="`pwd -P`"
66+
cd "$SAVED" >&-
67+
68+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69+
70+
# Determine the Java command to use to start the JVM.
71+
if [ -n "$JAVA_HOME" ] ; then
72+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73+
# IBM's JDK on AIX uses strange locations for the executables
74+
JAVACMD="$JAVA_HOME/jre/sh/java"
75+
else
76+
JAVACMD="$JAVA_HOME/bin/java"
77+
fi
78+
if [ ! -x "$JAVACMD" ] ; then
79+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80+
81+
Please set the JAVA_HOME variable in your environment to match the
82+
location of your Java installation."
83+
fi
84+
else
85+
JAVACMD="java"
86+
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87+
88+
Please set the JAVA_HOME variable in your environment to match the
89+
location of your Java installation."
90+
fi
91+
92+
# Increase the maximum file descriptors if we can.
93+
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94+
MAX_FD_LIMIT=`ulimit -H -n`
95+
if [ $? -eq 0 ] ; then
96+
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97+
MAX_FD="$MAX_FD_LIMIT"
98+
fi
99+
ulimit -n $MAX_FD
100+
if [ $? -ne 0 ] ; then
101+
warn "Could not set maximum file descriptor limit: $MAX_FD"
102+
fi
103+
else
104+
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105+
fi
106+
fi
107+
108+
# For Darwin, add options to specify how the application appears in the dock
109+
if $darwin; then
110+
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111+
fi
112+
113+
# For Cygwin, switch paths to Windows format before running java
114+
if $cygwin ; then
115+
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116+
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117+
118+
# We build the pattern for arguments to be converted via cygpath
119+
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120+
SEP=""
121+
for dir in $ROOTDIRSRAW ; do
122+
ROOTDIRS="$ROOTDIRS$SEP$dir"
123+
SEP="|"
124+
done
125+
OURCYGPATTERN="(^($ROOTDIRS))"
126+
# Add a user-defined pattern to the cygpath arguments
127+
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128+
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129+
fi
130+
# Now convert the arguments - kludge to limit ourselves to /bin/sh
131+
i=0
132+
for arg in "$@" ; do
133+
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134+
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135+
136+
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137+
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138+
else
139+
eval `echo args$i`="\"$arg\""
140+
fi
141+
i=$((i+1))
142+
done
143+
case $i in
144+
(0) set -- ;;
145+
(1) set -- "$args0" ;;
146+
(2) set -- "$args0" "$args1" ;;
147+
(3) set -- "$args0" "$args1" "$args2" ;;
148+
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149+
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150+
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151+
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152+
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153+
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154+
esac
155+
fi
156+
157+
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158+
function splitJvmOpts() {
159+
JVM_OPTS=("$@")
160+
}
161+
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162+
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163+
164+
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

0 commit comments

Comments
 (0)