From b0a71256ab652961bb90aee94d6f3a8600292341 Mon Sep 17 00:00:00 2001 From: DMGithubPublisher Date: Fri, 11 Oct 2024 15:27:15 +0800 Subject: [PATCH] update to internal commit 677d03ee --- _config.yml | 3 +- _data/{full_tree.yml => full_tree_OLD.yml} | 0 ...ct_version.yml => product_version_OLD.yml} | 0 ...-tree.html => sidelist-full-tree_OLD.html} | 0 ...roid.html => programming-android_OLD.html} | 0 ...ming-ios.html => programming-ios_OLD.html} | 0 ...ng-maui.html => programming-maui_OLD.html} | 0 .../api-reference/parsed-result-item.md | 4 +- .../user-guide/getting-started-v2.0.20.md | 242 ------------------ .../ios/api-reference/parsed-result-item.md | 4 +- .../ios/user-guide/getting-started-v2.0.20.md | 226 ---------------- .../ios/user-guide/getting-started-v2.0.21.md | 226 ---------------- .../maui/api-reference/parsed-result-item.md | 2 +- 13 files changed, 7 insertions(+), 700 deletions(-) rename _data/{full_tree.yml => full_tree_OLD.yml} (100%) rename _data/{product_version.yml => product_version_OLD.yml} (100%) rename _includes/{sidelist-full-tree.html => sidelist-full-tree_OLD.html} (100%) rename _includes/sidelist-programming/{programming-android.html => programming-android_OLD.html} (100%) rename _includes/sidelist-programming/{programming-ios.html => programming-ios_OLD.html} (100%) rename _includes/sidelist-programming/{programming-maui.html => programming-maui_OLD.html} (100%) delete mode 100644 programming/android/user-guide/getting-started-v2.0.20.md delete mode 100644 programming/ios/user-guide/getting-started-v2.0.20.md delete mode 100644 programming/ios/user-guide/getting-started-v2.0.21.md diff --git a/_config.yml b/_config.yml index 3fd7918..7fa7c45 100644 --- a/_config.yml +++ b/_config.yml @@ -36,7 +36,8 @@ dbr_icon: /code-parser/docs/mobile/assets/img-icon/icon-dbr.svg dwt_icon: /code-parser/docs/mobile/assets/img-icon/icon-dwt.svg dnt_icon: /code-parser/docs/mobile/assets/img-icon/icon-dnt.svg -useVersionTree: true +useVersionTree: false +isDCV: true baseurl: "/code-parser/docs/mobile" diff --git a/_data/full_tree.yml b/_data/full_tree_OLD.yml similarity index 100% rename from _data/full_tree.yml rename to _data/full_tree_OLD.yml diff --git a/_data/product_version.yml b/_data/product_version_OLD.yml similarity index 100% rename from _data/product_version.yml rename to _data/product_version_OLD.yml diff --git a/_includes/sidelist-full-tree.html b/_includes/sidelist-full-tree_OLD.html similarity index 100% rename from _includes/sidelist-full-tree.html rename to _includes/sidelist-full-tree_OLD.html diff --git a/_includes/sidelist-programming/programming-android.html b/_includes/sidelist-programming/programming-android_OLD.html similarity index 100% rename from _includes/sidelist-programming/programming-android.html rename to _includes/sidelist-programming/programming-android_OLD.html diff --git a/_includes/sidelist-programming/programming-ios.html b/_includes/sidelist-programming/programming-ios_OLD.html similarity index 100% rename from _includes/sidelist-programming/programming-ios.html rename to _includes/sidelist-programming/programming-ios_OLD.html diff --git a/_includes/sidelist-programming/programming-maui.html b/_includes/sidelist-programming/programming-maui_OLD.html similarity index 100% rename from _includes/sidelist-programming/programming-maui.html rename to _includes/sidelist-programming/programming-maui_OLD.html diff --git a/programming/android/api-reference/parsed-result-item.md b/programming/android/api-reference/parsed-result-item.md index d734f00..3048644 100644 --- a/programming/android/api-reference/parsed-result-item.md +++ b/programming/android/api-reference/parsed-result-item.md @@ -76,7 +76,7 @@ String getFieldValue(String fieldName); `[in] fieldName`: The name of the field. -> [View more information about the field names of all supported code types]({{ site.code_types }}){:target="_blank"}. +> [View more information about the field names of all supported code types]({{ site.code_types }}). **Return Value** @@ -134,4 +134,4 @@ HashMap getParsedFields(); A HashMap that contains the names and values of the parsed fields. -> [View more information about the field names of all supported code types]({{ site.code_types }}){:target="_blank"}. +> [View more information about the field names of all supported code types]({{ site.code_types }}). diff --git a/programming/android/user-guide/getting-started-v2.0.20.md b/programming/android/user-guide/getting-started-v2.0.20.md deleted file mode 100644 index 1f22962..0000000 --- a/programming/android/user-guide/getting-started-v2.0.20.md +++ /dev/null @@ -1,242 +0,0 @@ ---- -layout: default-layout -title: User Guide - Dynamsoft Code Parser SDK Android Edition -description: This is the user guide of Dynamsoft Code Parser SDK Android Edition. -keywords: user guide, Android -needAutoGenerateSidebar: true -needGenerateH3Content: true -noTitleIndex: true ---- - -# Dynamsoft Code Parser - Android User Guide - -- [Dynamsoft Code Parser - Android User Guide](#dynamsoft-code-parser---android-user-guide) - - [Requirements](#requirements) - - [Add the Libraries](#add-the-libraries) - - [Add the Libraries Manually](#add-the-libraries-manually) - - [Add the Libraries via Maven](#add-the-libraries-via-maven) - - [Build Your First Application](#build-your-first-application) - - [Create a New Project](#create-a-new-project) - - [Include the Library](#include-the-library) - - [Initialize the License](#initialize-the-license) - - [Initialize Code Parser And Parse the Code Bytes](#initialize-code-parser-and-parse-the-code-bytes) - - [Display Parsed Results](#display-parsed-results) - - [Build and Run the Project](#build-and-run-the-project) - -## Requirements - -- Supported OS: Android 5.0 (API Level 21) or higher. -- Supported ABI: **armeabi-v7a**, **arm64-v8a**, **x86** and **x86_64**. -- Development Environment: Android Studio 2022.2.1 or higher. - -## Add the Libraries - -The Dynamsoft Code Parser (DCP) Android SDK comes with four libraries: - - | File | Description | - |---------|-------------| - | `DynamsoftCodeParser.aar` | The Dynamsoft Code Parser library, which includes code parsing logic and related APIs. | - | `DynamsoftCore.aar` | The core library, which includes common basic structures and intermediate result related APIs. | - | `DynamsoftLicense.aar` | The license library, which includes license related APIs. | - | `DynamsoftCodeParserDedicator.aar`| The code parser helper library, which includes some validation functions used by the SDK.| - -There are two ways to add the libraries into your project - **Manually** and **Maven**. - -### Add the Libraries Manually - -1. Download the SDK package from the Dynamsoft Website. After unzipping, four **aar** files can be found in the **Dynamsoft\Libs** directory: - - - **DynamsoftCodeParser.aar** - - **DynamsoftCore.aar** - - **DynamsoftLicense.aar** - - **DynamsoftCodeParserDedicator.aar** - -2. Copy the above seven **aar** files to the target directory such as `[App Project Root Path]\app\libs` - -3. Open the file `[App Project Root Path]\app\build.gradle` and add the reference in the dependencies: - - ```groovy - dependencies { - implementation fileTree(dir: 'libs', include: ['*.aar']) - } - ``` - -4. Click **Sync Now**. After the synchronization is complete, the SDK is added to the project. - -### Add the Libraries via Maven - -1. Open the file `[App Project Root Path]\app\build.gradle` and add the Maven repository: - - ```groovy - repositories { - maven { - url "https://download2.dynamsoft.com/maven/aar" - } - } - ``` - -2. Add the references in the dependencies: - - ```groovy - dependencies { - implementation 'com.dynamsoft:dynamsoftcodeparser:2.0.20' - implementation 'com.dynamsoft:dynamsoftcodeparserdedicator:1.0.10' - implementation 'com.dynamsoft:dynamsoftcore:3.0.20' - implementation 'com.dynamsoft:dynamsoftlicense:3.0.30' - } - ``` - -3. Click **Sync Now**. After the synchronization is complete, the SDK is added to the project. - -## Build Your First Application - -In this section, we are going to explain how to create a simple `HelloWorld` app for parsing text or bytes. - ->Note: -> ->- Android Studio 2022.3.1 is used here in this guide. ->- You can get similar source code from -> - HelloWorld Sample (Java) - -### Create a New Project - -1. Open Android Studio and select New Project… in the File > New > New Project… menu to create a new project. - -2. Choose the correct template for your project. In this sample, we'll use `Empty Activity`. - -3. When prompted, choose your app name (`HelloWorld`) and set the Save location, Language, and Minimum SDK (21) - >Note: With minSdkVersion set to 21, your app is available on more than 94.1% of devices on the Google Play Store (last update: March 2021). - -### Include the Library - -Add the SDK to your new project. Please read [Add the Libraries](#add-the-libraries) section for more details. - -### Initialize the License - -1. Initialize the license in the file `MainActivity.java`. - - ```java - import com.dynamsoft.license.LicenseManager; - public class MainActivity extends AppCompatActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", this, (isSuccess, error) -> { - if (!isSuccess) { - error.printStackTrace(); - } - }); - } - } - ``` - - >Note: - > - >- The license string here grants a time-limited free trial which requires network connection to work. - >- You can request a 30-day trial license via the [Request a Trial License](https://www.dynamsoft.com/customer/license/trialLicense?product=dcp&utm_source=guide&package=android){:target="_blank"} link. Offline trial license is also available by [contacting us](https://www.dynamsoft.com/contact/){:target="_blank"}. - >- If you download the Installation Package, it comes with a 30-day trial license by default. - -### Initialize Code Parser And Parse the Code Bytes - -1. Import and initialize the `CodeParser`. - - ```java - import com.dynamsoft.dcp.CodeParser; - public class MainActivity extends AppCompatActivity { - private CodeParser mParser; - @Override - protected void onCreate(Bundle savedInstanceState) { - ... - mParser = new CodeParser(this); - } - } - ``` - -2. In the Project window, open **app > res > layout > `activity_main.xml`**, create a "Parse" button control under the root node. - - ```xml -