Skip to content

Commit 7f2df1f

Browse files
committed
Works
1 parent f2655a7 commit 7f2df1f

File tree

26 files changed

+963
-698
lines changed

26 files changed

+963
-698
lines changed

.gitignore

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
1-
*.iml
2-
.gradle
3-
/local.properties
4-
/.idea/caches
5-
/.idea/libraries
6-
/.idea/modules.xml
7-
/.idea/workspace.xml
8-
/.idea/navEditor.xml
9-
/.idea/assetWizardSettings.xml
10-
.DS_Store
11-
/build
12-
/captures
13-
.externalNativeBuild
14-
.cxx
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the Dalvik VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
# Gradle files
17+
.gradle/
18+
build/
19+
20+
# Local configuration file (sdk path, etc)
21+
local.properties
22+
23+
# Proguard folder generated by Eclipse
24+
proguard/
25+
26+
# Log Files
27+
*.log
28+
29+
# Android Studio Navigation editor temp files
30+
.navigation/
31+
32+
# Android Studio captures folder
33+
captures/
34+
35+
# Intellij
36+
*.iml
37+
38+
# Keystore files
39+
*.jks

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Aspose Pty Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Aspose Barcode Cloud Android
2+
3+
This repository contains test project and instructions on how to use Aspose.Barcode Cloud SDK for Java in Android applications.
4+
5+
[Aspose.Barcode Cloud](https://products.aspose.cloud/barcode/family "Aspose.Barcode Cloud")
6+
[API Reference](https://apireference.aspose.cloud/barcode/)
7+
8+
9+
## Prerequisites
10+
11+
To use Aspose Barcode Cloud for Android you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
12+
13+
## Getting Started
14+
15+
* Open project in Android Studio
16+
17+
* Go to file *app/src/main/java/com/example/asposebarcodecloud/MainActivity.kt* and set *appSid* and *appKey* to apropriate values from <https://dashboard.aspose.cloud/#/apps>
18+
19+
* Build project and run application on connected device or emulator.

app/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/build.gradle

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,42 @@
1-
apply plugin: 'com.android.application'
2-
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-android-extensions'
4-
5-
android {
6-
compileSdkVersion 30
7-
buildToolsVersion "30.0.1"
8-
9-
defaultConfig {
10-
applicationId "com.example.asposebarcodecloud"
11-
minSdkVersion 23
12-
targetSdkVersion 30
13-
versionCode 1
14-
versionName "1.0"
15-
16-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17-
}
18-
19-
buildTypes {
20-
release {
21-
minifyEnabled false
22-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23-
}
24-
}
25-
}
26-
27-
dependencies {
28-
implementation fileTree(dir: "libs", include: ["*.jar"])
29-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
30-
implementation 'androidx.core:core-ktx:1.3.1'
31-
implementation 'androidx.appcompat:appcompat:1.2.0'
32-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
33-
testImplementation 'junit:junit:4.12'
34-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
35-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
36-
37-
}
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
5+
android {
6+
compileSdkVersion 30
7+
buildToolsVersion "30.0.1"
8+
9+
defaultConfig {
10+
applicationId "com.example.asposebarcodecloud"
11+
minSdkVersion 23
12+
targetSdkVersion 30
13+
versionCode 1
14+
versionName "1.0"
15+
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
}
18+
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
}
26+
27+
repositories {
28+
maven { url 'https://repository.aspose.cloud/repo/' }
29+
}
30+
31+
dependencies {
32+
implementation fileTree(dir: "libs", include: ["*.jar"])
33+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
34+
implementation 'androidx.core:core-ktx:1.3.1'
35+
implementation 'androidx.appcompat:appcompat:1.2.0'
36+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
37+
implementation 'com.aspose:aspose-barcode-cloud:20.8.0'
38+
implementation 'com.google.android.material:material:1.2.0'
39+
testImplementation 'junit:junit:4.13'
40+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
41+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
42+
}

app/proguard-rules.pro

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# Add project specific ProGuard rules here.
2-
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
4-
#
5-
# For more details, see
6-
# http://developer.android.com/guide/developing/tools/proguard.html
7-
8-
# If your project uses WebView with JS, uncomment the following
9-
# and specify the fully qualified class name to the JavaScript interface
10-
# class:
11-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12-
# public *;
13-
#}
14-
15-
# Uncomment this to preserve the line number information for
16-
# debugging stack traces.
17-
#-keepattributes SourceFile,LineNumberTable
18-
19-
# If you keep the line number information, uncomment this to
20-
# hide the original source file name.
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile

app/src/androidTest/java/com/example/asposebarcodecloud/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/src/main/AndroidManifest.xml

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.example.asposebarcodecloud">
4-
5-
<application
6-
android:allowBackup="true"
7-
android:icon="@mipmap/ic_launcher"
8-
android:label="@string/app_name"
9-
android:roundIcon="@mipmap/ic_launcher_round"
10-
android:supportsRtl="true"
11-
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
13-
<intent-filter>
14-
<action android:name="android.intent.action.MAIN" />
15-
16-
<category android:name="android.intent.category.LAUNCHER" />
17-
</intent-filter>
18-
</activity>
19-
</application>
20-
21-
</manifest>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.example.asposebarcodecloud">
4+
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
7+
8+
<uses-feature
9+
android:name="android.hardware.camera"
10+
android:required="false" />
11+
12+
<application
13+
android:allowBackup="true"
14+
android:fullBackupContent="@xml/backup_descriptor"
15+
android:icon="@mipmap/ic_launcher"
16+
android:label="@string/app_name"
17+
android:roundIcon="@mipmap/ic_launcher_round"
18+
android:supportsRtl="true"
19+
android:theme="@style/AppTheme">
20+
<activity android:name=".MainActivity">
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+
</application>
28+
29+
</manifest>

0 commit comments

Comments
 (0)