Skip to content

Commit de8f447

Browse files
Updated with latest SDK 4.2.7.
1 parent 3333f97 commit de8f447

File tree

4 files changed

+27
-16
lines changed

4 files changed

+27
-16
lines changed

kotlin_sample/app/build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ plugins {
55

66
android {
77
namespace 'com.extrieve.quickcapture.docappkotlin'
8-
compileSdk 34
8+
compileSdk 35
99

1010
defaultConfig {
1111
applicationId "com.extrieve.quickcapture.docappkotlin"
1212
minSdk 21
13-
targetSdk 34
13+
targetSdk 35
1414
versionCode 1
1515
versionName "1.1"
1616

@@ -34,10 +34,11 @@ android {
3434

3535
dependencies {
3636

37-
implementation 'androidx.core:core-ktx:1.12.0'
38-
implementation 'androidx.appcompat:appcompat:1.7.0-alpha03'
39-
implementation 'com.google.android.material:material:1.11.0-beta01'
40-
implementation 'androidx.constraintlayout:constraintlayout:2.2.0-alpha13'
37+
implementation 'androidx.core:core-ktx:1.13.1'
38+
implementation 'androidx.appcompat:appcompat:1.7.1'
39+
implementation 'com.google.android.material:material:1.12.0'
40+
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
41+
4142
/*DEV_HELP : link the preferred SDK version from maven repo by extrieve.*/
42-
implementation 'com.extrieve.quickcapture:QCv3:3.1.14'
43+
implementation 'com.extrieve.quickcapture:QCv4_PLUS:4.2.7'
4344
}

kotlin_sample/app/src/main/java/com/extrieve/quickcapture/docappkotlin/MainActivity.kt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class MainActivity : AppCompatActivity() {
5252
setConfig()
5353
openCameraActivity()
5454
}
55+
56+
//DEV_HELP : Finally Activate the license for advanced features
57+
//activateLicense() // Activate the license for advanced features
5558
}
5659

5760
/*DEV_HELP : Basic permission for App/SDK to work*/
@@ -95,12 +98,9 @@ class MainActivity : AppCompatActivity() {
9598

9699
/*DEV_HELP : SetUp SDKConfig - Refer tech. Doc. for further info.*/
97100
private fun setConfig() {
98-
imageHelper!!.SetPageLayout(4) //A1-A7(1-7),PHOTO,CUSTOM,ID(8,9,10)
101+
imageHelper!!.SetPageLayout(4) //A1-A7(1-7),PHOTO,CUSTOM(8,9)
99102
imageHelper!!.SetImageQuality(1) //0,1,2 - Photo_Quality, Document_Quality, Compressed_Document
100103
imageHelper!!.SetDPI(200) //int dpi_val = 100, 150, 200, 300, 500, 600;
101-
//imageHelper!!.SetImageQuality(ImgHelper.ImageQuality.Document_Quality)
102-
imageHelper!!.SetImageQuality(ImgHelper.ImageQuality.Document_Quality.ordinal)
103-
//val isUnlocked: Boolean = imageHelper!!.UnlockImagingLibrary(licData)
104104

105105
//can set output file path
106106
Config.CaptureSupport.OutputPath = buildStoragePath()
@@ -195,6 +195,16 @@ class MainActivity : AppCompatActivity() {
195195
}
196196
}
197197

198+
/*DEV_HELP : Activates the license required for the SDK for advanced options
199+
* Activates the license required for the SDK for advanced options.
200+
* Replace `yourLicenseKey` with your actual license string.
201+
* Optionally, you can fetch the key from an online source for dynamic updates.
202+
*/
203+
private fun activateLicense() {
204+
val licenseKey = "Your-License-String-Here" // TODO: Replace with actual key or fetch from secure server
205+
Config.License.Activate(this, licenseKey)
206+
}
207+
198208
companion object {
199209
private const val REQUEST_CODE_PERMISSIONS = 1001
200210
private const val REQUEST_CODE_FILE_RETURN = 1004

kotlin_sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id 'com.android.application' version '8.1.1' apply false
4-
id 'com.android.library' version '8.1.1' apply false
5-
id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
3+
id 'com.android.application' version '8.5.2' apply false
4+
id 'com.android.library' version '8.5.2' apply false
5+
id 'org.jetbrains.kotlin.android' version '1.9.22' apply false
66
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jun 19 22:02:12 IST 2023
1+
#Wed Jun 11 16:32:21 IST 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)