init
30
.gitignore
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
migrate_working_dir/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
|
||||
/pubspec.lock
|
||||
**/doc/api/
|
||||
.dart_tool/
|
||||
.packages
|
||||
build/
|
33
.metadata
Normal file
@ -0,0 +1,33 @@
|
||||
# This file tracks properties of this Flutter project.
|
||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||
#
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: "ead455963c12b453cdb2358cad34969c76daf180"
|
||||
channel: "stable"
|
||||
|
||||
project_type: plugin
|
||||
|
||||
# Tracks metadata for the flutter migrate command
|
||||
migration:
|
||||
platforms:
|
||||
- platform: root
|
||||
create_revision: ead455963c12b453cdb2358cad34969c76daf180
|
||||
base_revision: ead455963c12b453cdb2358cad34969c76daf180
|
||||
- platform: android
|
||||
create_revision: ead455963c12b453cdb2358cad34969c76daf180
|
||||
base_revision: ead455963c12b453cdb2358cad34969c76daf180
|
||||
- platform: ios
|
||||
create_revision: ead455963c12b453cdb2358cad34969c76daf180
|
||||
base_revision: ead455963c12b453cdb2358cad34969c76daf180
|
||||
|
||||
# User provided section
|
||||
|
||||
# List of Local paths (relative to this file) that should be
|
||||
# ignored by the migrate tool.
|
||||
#
|
||||
# Files that are not part of the templates will be ignored by default.
|
||||
unmanaged_files:
|
||||
- 'lib/main.dart'
|
||||
- 'ios/Runner.xcodeproj/project.pbxproj'
|
3
CHANGELOG.md
Normal file
@ -0,0 +1,3 @@
|
||||
## 0.0.1
|
||||
|
||||
* TODO: Describe initial release.
|
15
README.md
Normal file
@ -0,0 +1,15 @@
|
||||
# jc_printer
|
||||
|
||||
精臣打印机SDK
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter
|
||||
[plug-in package](https://flutter.dev/developing-packages/),
|
||||
a specialized package that includes platform-specific implementation code for
|
||||
Android and/or iOS.
|
||||
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
|
4
analysis_options.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
include: package:flutter_lints/flutter.yaml
|
||||
|
||||
# Additional information about this file can be found at
|
||||
# https://dart.dev/guides/language/analysis-options
|
9
android/.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
*.iml
|
||||
.gradle
|
||||
/local.properties
|
||||
/.idea/workspace.xml
|
||||
/.idea/libraries
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.cxx
|
54
android/build.gradle
Normal file
@ -0,0 +1,54 @@
|
||||
group 'com.example.jc_printer'
|
||||
version '1.0'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.3.0'
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
if (project.android.hasProperty("namespace")) {
|
||||
namespace 'com.example.jc_printer'
|
||||
}
|
||||
|
||||
compileSdkVersion 33
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation 'org.mockito:mockito-core:5.0.0'
|
||||
}
|
||||
|
||||
testOptions {
|
||||
unitTests.all {
|
||||
testLogging {
|
||||
events "passed", "skipped", "failed", "standardOut", "standardError"
|
||||
outputs.upToDateWhen {false}
|
||||
showStandardStreams = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
android/settings.gradle
Normal file
@ -0,0 +1 @@
|
||||
rootProject.name = 'jc_printer'
|
3
android/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.jc_printer">
|
||||
</manifest>
|
@ -0,0 +1,38 @@
|
||||
package com.example.jc_printer;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import io.flutter.embedding.engine.plugins.FlutterPlugin;
|
||||
import io.flutter.plugin.common.MethodCall;
|
||||
import io.flutter.plugin.common.MethodChannel;
|
||||
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
|
||||
import io.flutter.plugin.common.MethodChannel.Result;
|
||||
|
||||
/** JcPrinterPlugin */
|
||||
public class JcPrinterPlugin implements FlutterPlugin, MethodCallHandler {
|
||||
/// The MethodChannel that will the communication between Flutter and native Android
|
||||
///
|
||||
/// This local reference serves to register the plugin with the Flutter Engine and unregister it
|
||||
/// when the Flutter Engine is detached from the Activity
|
||||
private MethodChannel channel;
|
||||
|
||||
@Override
|
||||
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
|
||||
channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), "jc_printer");
|
||||
channel.setMethodCallHandler(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
|
||||
if (call.method.equals("getPlatformVersion")) {
|
||||
result.success("Android " + android.os.Build.VERSION.RELEASE);
|
||||
} else {
|
||||
result.notImplemented();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
|
||||
channel.setMethodCallHandler(null);
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.example.jc_printer;
|
||||
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
|
||||
import io.flutter.plugin.common.MethodCall;
|
||||
import io.flutter.plugin.common.MethodChannel;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* This demonstrates a simple unit test of the Java portion of this plugin's implementation.
|
||||
*
|
||||
* Once you have built the plugin's example app, you can run these tests from the command
|
||||
* line by running `./gradlew testDebugUnitTest` in the `example/android/` directory, or
|
||||
* you can run them directly from IDEs that support JUnit such as Android Studio.
|
||||
*/
|
||||
|
||||
public class JcPrinterPluginTest {
|
||||
@Test
|
||||
public void onMethodCall_getPlatformVersion_returnsExpectedValue() {
|
||||
JcPrinterPlugin plugin = new JcPrinterPlugin();
|
||||
|
||||
final MethodCall call = new MethodCall("getPlatformVersion", null);
|
||||
MethodChannel.Result mockResult = mock(MethodChannel.Result.class);
|
||||
plugin.onMethodCall(call, mockResult);
|
||||
|
||||
verify(mockResult).success("Android " + android.os.Build.VERSION.RELEASE);
|
||||
}
|
||||
}
|
44
example/.gitignore
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
migrate_working_dir/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
**/ios/Flutter/.last_build_id
|
||||
.dart_tool/
|
||||
.flutter-plugins
|
||||
.flutter-plugins-dependencies
|
||||
.packages
|
||||
.pub-cache/
|
||||
.pub/
|
||||
/build/
|
||||
|
||||
# Symbolication related
|
||||
app.*.symbols
|
||||
|
||||
# Obfuscation related
|
||||
app.*.map.json
|
||||
|
||||
# Android Studio will place build artifacts here
|
||||
/android/app/debug
|
||||
/android/app/profile
|
||||
/android/app/release
|
16
example/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# jc_printer_example
|
||||
|
||||
Demonstrates how to use the jc_printer plugin.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
|
||||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
28
example/analysis_options.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
# This file configures the analyzer, which statically analyzes Dart code to
|
||||
# check for errors, warnings, and lints.
|
||||
#
|
||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
||||
# invoked from the command line by running `flutter analyze`.
|
||||
|
||||
# The following line activates a set of recommended lints for Flutter apps,
|
||||
# packages, and plugins designed to encourage good coding practices.
|
||||
include: package:flutter_lints/flutter.yaml
|
||||
|
||||
linter:
|
||||
# The lint rules applied to this project can be customized in the
|
||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||
# included above or to enable additional rules. A list of all available lints
|
||||
# and their documentation is published at https://dart.dev/lints.
|
||||
#
|
||||
# Instead of disabling a lint rule for the entire project in the
|
||||
# section below, it can also be suppressed for a single line of code
|
||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
||||
# producing the lint.
|
||||
rules:
|
||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||
|
||||
# Additional information about this file can be found at
|
||||
# https://dart.dev/guides/language/analysis-options
|
13
example/android/.gitignore
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
gradle-wrapper.jar
|
||||
/.gradle
|
||||
/captures/
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
/local.properties
|
||||
GeneratedPluginRegistrant.java
|
||||
|
||||
# Remember to never publicly share your keystore.
|
||||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
|
||||
key.properties
|
||||
**/*.keystore
|
||||
**/*.jks
|
57
example/android/app/build.gradle
Normal file
@ -0,0 +1,57 @@
|
||||
plugins {
|
||||
id "com.android.application"
|
||||
id "kotlin-android"
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
}
|
||||
|
||||
def localProperties = new Properties()
|
||||
def localPropertiesFile = rootProject.file('local.properties')
|
||||
if (localPropertiesFile.exists()) {
|
||||
localPropertiesFile.withReader('UTF-8') { reader ->
|
||||
localProperties.load(reader)
|
||||
}
|
||||
}
|
||||
|
||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||
if (flutterVersionCode == null) {
|
||||
flutterVersionCode = '1'
|
||||
}
|
||||
|
||||
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
||||
if (flutterVersionName == null) {
|
||||
flutterVersionName = '1.0'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace "com.example.jc_printer_example"
|
||||
compileSdkVersion flutter.compileSdkVersion
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "com.example.jc_printer_example"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source '../..'
|
||||
}
|
7
example/android/app/src/debug/AndroidManifest.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
33
example/android/app/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application
|
||||
android:label="jc_printer_example"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||
the Android process has started. This theme is visible to the user
|
||||
while the Flutter UI initializes. After that, this theme continues
|
||||
to determine the Window background behind the Flutter UI. -->
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
<meta-data
|
||||
android:name="flutterEmbedding"
|
||||
android:value="2" />
|
||||
</application>
|
||||
</manifest>
|
@ -0,0 +1,6 @@
|
||||
package com.example.jc_printer_example;
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity;
|
||||
|
||||
public class MainActivity extends FlutterActivity {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="?android:colorBackground" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
BIN
example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 544 B |
BIN
example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 442 B |
BIN
example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 721 B |
BIN
example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
18
example/android/app/src/main/res/values-night/styles.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
18
example/android/app/src/main/res/values/styles.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
7
example/android/app/src/profile/AndroidManifest.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
31
example/android/build.gradle
Normal file
@ -0,0 +1,31 @@
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.7.10'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.3.0'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.buildDir = '../build'
|
||||
subprojects {
|
||||
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
3
example/android/gradle.properties
Normal file
@ -0,0 +1,3 @@
|
||||
org.gradle.jvmargs=-Xmx1536M
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
5
example/android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
|
20
example/android/settings.gradle
Normal file
@ -0,0 +1,20 @@
|
||||
pluginManagement {
|
||||
def flutterSdkPath = {
|
||||
def properties = new Properties()
|
||||
file("local.properties").withInputStream { properties.load(it) }
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
return flutterSdkPath
|
||||
}
|
||||
settings.ext.flutterSdkPath = flutterSdkPath()
|
||||
|
||||
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
|
||||
|
||||
plugins {
|
||||
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
|
||||
}
|
||||
}
|
||||
|
||||
include ":app"
|
||||
|
||||
apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|
25
example/integration_test/plugin_integration_test.dart
Normal file
@ -0,0 +1,25 @@
|
||||
// This is a basic Flutter integration test.
|
||||
//
|
||||
// Since integration tests run in a full Flutter application, they can interact
|
||||
// with the host side of a plugin implementation, unlike Dart unit tests.
|
||||
//
|
||||
// For more information about Flutter integration tests, please see
|
||||
// https://docs.flutter.dev/cookbook/testing/integration/introduction
|
||||
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
|
||||
import 'package:jc_printer/jc_printer.dart';
|
||||
|
||||
void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
testWidgets('getPlatformVersion test', (WidgetTester tester) async {
|
||||
final JcPrinter plugin = JcPrinter();
|
||||
final String? version = await plugin.getPlatformVersion();
|
||||
// The version string depends on the host platform running the test, so
|
||||
// just assert that some non-empty string is returned.
|
||||
expect(version?.isNotEmpty, true);
|
||||
});
|
||||
}
|
34
example/ios/.gitignore
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
**/dgph
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.moved-aside
|
||||
*.pbxuser
|
||||
*.perspectivev3
|
||||
**/*sync/
|
||||
.sconsign.dblite
|
||||
.tags*
|
||||
**/.vagrant/
|
||||
**/DerivedData/
|
||||
Icon?
|
||||
**/Pods/
|
||||
**/.symlinks/
|
||||
profile
|
||||
xcuserdata
|
||||
**/.generated/
|
||||
Flutter/App.framework
|
||||
Flutter/Flutter.framework
|
||||
Flutter/Flutter.podspec
|
||||
Flutter/Generated.xcconfig
|
||||
Flutter/ephemeral/
|
||||
Flutter/app.flx
|
||||
Flutter/app.zip
|
||||
Flutter/flutter_assets/
|
||||
Flutter/flutter_export_environment.sh
|
||||
ServiceDefinitions.json
|
||||
Runner/GeneratedPluginRegistrant.*
|
||||
|
||||
# Exceptions to above rules.
|
||||
!default.mode1v3
|
||||
!default.mode2v3
|
||||
!default.pbxuser
|
||||
!default.perspectivev3
|
26
example/ios/Flutter/AppFrameworkInfo.plist
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter.app</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>App</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>11.0</string>
|
||||
</dict>
|
||||
</plist>
|
1
example/ios/Flutter/Debug.xcconfig
Normal file
@ -0,0 +1 @@
|
||||
#include "Generated.xcconfig"
|
1
example/ios/Flutter/Release.xcconfig
Normal file
@ -0,0 +1 @@
|
||||
#include "Generated.xcconfig"
|
609
example/ios/Runner.xcodeproj/project.pbxproj
Normal file
@ -0,0 +1,609 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 54;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
331C80F4294D02FB00263BE5 /* RunnerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 331C80F3294D02FB00263BE5 /* RunnerTests.m */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
|
||||
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
331C80F5294D02FB00263BE5 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 97C146E61CF9000F007C117D /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 97C146ED1CF9000F007C117D;
|
||||
remoteInfo = Runner;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
331C80F1294D02FB00263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
331C80F3294D02FB00263BE5 /* RunnerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerTests.m; sourceTree = "<group>"; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
331C80EE294D02FB00263BE5 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
97C146EB1CF9000F007C117D /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
331C80F2294D02FB00263BE5 /* RunnerTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
331C80F3294D02FB00263BE5 /* RunnerTests.m */,
|
||||
);
|
||||
path = RunnerTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
||||
);
|
||||
name = Flutter;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146E51CF9000F007C117D = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9740EEB11CF90186004384FC /* Flutter */,
|
||||
97C146F01CF9000F007C117D /* Runner */,
|
||||
331C80F2294D02FB00263BE5 /* RunnerTests */,
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146EF1CF9000F007C117D /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146EE1CF9000F007C117D /* Runner.app */,
|
||||
331C80F1294D02FB00263BE5 /* RunnerTests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146F01CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
|
||||
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
||||
97C147021CF9000F007C117D /* Info.plist */,
|
||||
97C146F11CF9000F007C117D /* Supporting Files */,
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
||||
);
|
||||
path = Runner;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146F11CF9000F007C117D /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146F21CF9000F007C117D /* main.m */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
331C80F0294D02FB00263BE5 /* RunnerTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 331C80F7294D02FB00263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
|
||||
buildPhases = (
|
||||
331C80ED294D02FB00263BE5 /* Sources */,
|
||||
331C80EE294D02FB00263BE5 /* Frameworks */,
|
||||
331C80EF294D02FB00263BE5 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
331C80F6294D02FB00263BE5 /* PBXTargetDependency */,
|
||||
);
|
||||
name = RunnerTests;
|
||||
productName = RunnerTests;
|
||||
productReference = 331C80F1294D02FB00263BE5 /* RunnerTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
97C146ED1CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
||||
buildPhases = (
|
||||
9740EEB61CF901F6004384FC /* Run Script */,
|
||||
97C146EA1CF9000F007C117D /* Sources */,
|
||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||
97C146EC1CF9000F007C117D /* Resources */,
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = Runner;
|
||||
productName = Runner;
|
||||
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
97C146E61CF9000F007C117D /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = YES;
|
||||
LastUpgradeCheck = 1430;
|
||||
ORGANIZATIONNAME = "";
|
||||
TargetAttributes = {
|
||||
331C80F0294D02FB00263BE5 = {
|
||||
CreatedOnToolsVersion = 14.0;
|
||||
TestTargetID = 97C146ED1CF9000F007C117D;
|
||||
};
|
||||
97C146ED1CF9000F007C117D = {
|
||||
CreatedOnToolsVersion = 7.3.1;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
|
||||
compatibilityVersion = "Xcode 9.3";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 97C146E51CF9000F007C117D;
|
||||
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
97C146ED1CF9000F007C117D /* Runner */,
|
||||
331C80F0294D02FB00263BE5 /* RunnerTests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
331C80EF294D02FB00263BE5 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
97C146EC1CF9000F007C117D /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
|
||||
);
|
||||
name = "Thin Binary";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Run Script";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
331C80ED294D02FB00263BE5 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
331C80F4294D02FB00263BE5 /* RunnerTests.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
97C146EA1CF9000F007C117D /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
|
||||
97C146F31CF9000F007C117D /* main.m in Sources */,
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
331C80F6294D02FB00263BE5 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 97C146ED1CF9000F007C117D /* Runner */;
|
||||
targetProxy = 331C80F5294D02FB00263BE5 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C146FB1CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C147001CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
249021D3217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
249021D4217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.jcPrinterExample;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
331C80F8294D02FB00263BE5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.jcPrinterExample.RunnerTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
331C80F9294D02FB00263BE5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.jcPrinterExample.RunnerTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
331C80FA294D02FB00263BE5 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.jcPrinterExample.RunnerTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
97C147031CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147041CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
97C147061CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.jcPrinterExample;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147071CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.jcPrinterExample;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
331C80F7294D02FB00263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
331C80F8294D02FB00263BE5 /* Debug */,
|
||||
331C80F9294D02FB00263BE5 /* Release */,
|
||||
331C80FA294D02FB00263BE5 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147031CF9000F007C117D /* Debug */,
|
||||
97C147041CF9000F007C117D /* Release */,
|
||||
249021D3217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147061CF9000F007C117D /* Debug */,
|
||||
97C147071CF9000F007C117D /* Release */,
|
||||
249021D4217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 97C146E61CF9000F007C117D /* Project object */;
|
||||
}
|
7
example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>PreviewsEnabled</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1430"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO"
|
||||
parallelizable = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "331C80F0294D02FB00263BE5"
|
||||
BuildableName = "RunnerTests.xctest"
|
||||
BlueprintName = "RunnerTests"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Profile"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
7
example/ios/Runner.xcworkspace/contents.xcworkspacedata
generated
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Runner.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>PreviewsEnabled</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
6
example/ios/Runner/AppDelegate.h
Normal file
@ -0,0 +1,6 @@
|
||||
#import <Flutter/Flutter.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface AppDelegate : FlutterAppDelegate
|
||||
|
||||
@end
|
13
example/ios/Runner/AppDelegate.m
Normal file
@ -0,0 +1,13 @@
|
||||
#import "AppDelegate.h"
|
||||
#import "GeneratedPluginRegistrant.h"
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
- (BOOL)application:(UIApplication *)application
|
||||
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
[GeneratedPluginRegistrant registerWithRegistry:self];
|
||||
// Override point for customization after application launch.
|
||||
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
||||
}
|
||||
|
||||
@end
|
@ -0,0 +1,122 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "83.5x83.5",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Icon-App-1024x1024@1x.png",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 406 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 282 B |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 704 B |
After Width: | Height: | Size: 406 B |
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 862 B |
After Width: | Height: | Size: 862 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 762 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
23
example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
BIN
example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
vendored
Normal file
After Width: | Height: | Size: 68 B |
BIN
example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
vendored
Normal file
After Width: | Height: | Size: 68 B |
BIN
example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
vendored
Normal file
After Width: | Height: | Size: 68 B |
5
example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# Launch Screen Assets
|
||||
|
||||
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
|
||||
|
||||
You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
|
37
example/ios/Runner/Base.lproj/LaunchScreen.storyboard
Normal file
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="EHf-IW-A2E">
|
||||
<objects>
|
||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="LaunchImage" width="168" height="185"/>
|
||||
</resources>
|
||||
</document>
|
26
example/ios/Runner/Base.lproj/Main.storyboard
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--Flutter View Controller-->
|
||||
<scene sceneID="tne-QT-ifu">
|
||||
<objects>
|
||||
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
49
example/ios/Runner/Info.plist
Normal file
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Jc Printer</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>jc_printer_example</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||
<true/>
|
||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
9
example/ios/Runner/main.m
Normal file
@ -0,0 +1,9 @@
|
||||
#import <Flutter/Flutter.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "AppDelegate.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
@autoreleasepool {
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
||||
}
|
||||
}
|
33
example/ios/RunnerTests/RunnerTests.m
Normal file
@ -0,0 +1,33 @@
|
||||
#import <Flutter/Flutter.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
@import jc_printer;
|
||||
|
||||
// This demonstrates a simple unit test of the Objective-C portion of this plugin's implementation.
|
||||
//
|
||||
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
|
||||
|
||||
@interface RunnerTests : XCTestCase
|
||||
|
||||
@end
|
||||
|
||||
@implementation RunnerTests
|
||||
|
||||
- (void)testExample {
|
||||
JcPrinterPlugin *plugin = [[JcPrinterPlugin alloc] init];
|
||||
|
||||
FlutterMethodCall *call = [FlutterMethodCall methodCallWithMethodName:@"getPlatformVersion"
|
||||
arguments:nil];
|
||||
XCTestExpectation *expectation = [self expectationWithDescription:@"result block must be called"];
|
||||
[plugin handleMethodCall:call
|
||||
result:^(id result) {
|
||||
NSString *expected = [NSString
|
||||
stringWithFormat:@"iOS %@", UIDevice.currentDevice.systemVersion];
|
||||
XCTAssertEqualObjects(result, expected);
|
||||
[expectation fulfill];
|
||||
}];
|
||||
[self waitForExpectationsWithTimeout:1 handler:nil];
|
||||
}
|
||||
|
||||
@end
|
63
example/lib/main.dart
Normal file
@ -0,0 +1,63 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:jc_printer/jc_printer.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatefulWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
State<MyApp> createState() => _MyAppState();
|
||||
}
|
||||
|
||||
class _MyAppState extends State<MyApp> {
|
||||
String _platformVersion = 'Unknown';
|
||||
final _jcPrinterPlugin = JcPrinter();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
initPlatformState();
|
||||
}
|
||||
|
||||
// Platform messages are asynchronous, so we initialize in an async method.
|
||||
Future<void> initPlatformState() async {
|
||||
String platformVersion;
|
||||
// Platform messages may fail, so we use a try/catch PlatformException.
|
||||
// We also handle the message potentially returning null.
|
||||
try {
|
||||
platformVersion =
|
||||
await _jcPrinterPlugin.getPlatformVersion() ?? 'Unknown platform version';
|
||||
} on PlatformException {
|
||||
platformVersion = 'Failed to get platform version.';
|
||||
}
|
||||
|
||||
// If the widget was removed from the tree while the asynchronous platform
|
||||
// message was in flight, we want to discard the reply rather than calling
|
||||
// setState to update our non-existent appearance.
|
||||
if (!mounted) return;
|
||||
|
||||
setState(() {
|
||||
_platformVersion = platformVersion;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
home: Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Plugin example app'),
|
||||
),
|
||||
body: Center(
|
||||
child: Text('Running on: $_platformVersion\n'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
267
example/pubspec.lock
Normal file
@ -0,0 +1,267 @@
|
||||
# Generated by pub
|
||||
# See https://dart.dev/tools/pub/glossary#lockfile
|
||||
packages:
|
||||
async:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: async
|
||||
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.11.0"
|
||||
boolean_selector:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: boolean_selector
|
||||
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
characters:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: characters
|
||||
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.3.0"
|
||||
clock:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: clock
|
||||
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.1"
|
||||
collection:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: collection
|
||||
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.17.2"
|
||||
cupertino_icons:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: cupertino_icons
|
||||
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.6"
|
||||
fake_async:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: fake_async
|
||||
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.3.1"
|
||||
file:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: file
|
||||
sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.1.4"
|
||||
flutter:
|
||||
dependency: "direct main"
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_driver:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_lints:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: flutter_lints
|
||||
sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.3"
|
||||
flutter_test:
|
||||
dependency: "direct dev"
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
fuchsia_remote_debug_protocol:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
integration_test:
|
||||
dependency: "direct dev"
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
jc_printer:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
lints:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: lints
|
||||
sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: matcher
|
||||
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.12.16"
|
||||
material_color_utilities:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: material_color_utilities
|
||||
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.5.0"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: meta
|
||||
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.9.1"
|
||||
path:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path
|
||||
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.8.3"
|
||||
platform:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: platform
|
||||
sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.1.0"
|
||||
plugin_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: plugin_platform_interface
|
||||
sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.6"
|
||||
process:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: process
|
||||
sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.2.4"
|
||||
sky_engine:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.99"
|
||||
source_span:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_span
|
||||
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.10.0"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stack_trace
|
||||
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.11.0"
|
||||
stream_channel:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stream_channel
|
||||
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
string_scanner:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: string_scanner
|
||||
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
sync_http:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sync_http
|
||||
sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.3.1"
|
||||
term_glyph:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: term_glyph
|
||||
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.1"
|
||||
test_api:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_api
|
||||
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.6.0"
|
||||
vector_math:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vector_math
|
||||
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.4"
|
||||
vm_service:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vm_service
|
||||
sha256: c620a6f783fa22436da68e42db7ebbf18b8c44b9a46ab911f666ff09ffd9153f
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "11.7.1"
|
||||
web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: web
|
||||
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.1.4-beta"
|
||||
webdriver:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: webdriver
|
||||
sha256: "3c923e918918feeb90c4c9fdf1fe39220fa4c0e8e2c0fffaded174498ef86c49"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.2"
|
||||
sdks:
|
||||
dart: ">=3.1.3 <4.0.0"
|
||||
flutter: ">=3.3.0"
|
85
example/pubspec.yaml
Normal file
@ -0,0 +1,85 @@
|
||||
name: jc_printer_example
|
||||
description: Demonstrates how to use the jc_printer plugin.
|
||||
# The following line prevents the package from being accidentally published to
|
||||
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
|
||||
environment:
|
||||
sdk: '>=3.1.3 <4.0.0'
|
||||
|
||||
# Dependencies specify other packages that your package needs in order to work.
|
||||
# To automatically upgrade your package dependencies to the latest versions
|
||||
# consider running `flutter pub upgrade --major-versions`. Alternatively,
|
||||
# dependencies can be manually updated by changing the version numbers below to
|
||||
# the latest version available on pub.dev. To see which dependencies have newer
|
||||
# versions available, run `flutter pub outdated`.
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
jc_printer:
|
||||
# When depending on this package from a real application you should use:
|
||||
# jc_printer: ^x.y.z
|
||||
# See https://dart.dev/tools/pub/dependencies#version-constraints
|
||||
# The example app is bundled with the plugin so we use a path dependency on
|
||||
# the parent directory to use the current plugin's version.
|
||||
path: ../
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.2
|
||||
|
||||
dev_dependencies:
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
# The "flutter_lints" package below contains a set of recommended lints to
|
||||
# encourage good coding practices. The lint set provided by the package is
|
||||
# activated in the `analysis_options.yaml` file located at the root of your
|
||||
# package. See that file for information about deactivating specific lint
|
||||
# rules and activating additional ones.
|
||||
flutter_lints: ^2.0.0
|
||||
|
||||
# For information on the generic Dart part of this file, see the
|
||||
# following page: https://dart.dev/tools/pub/pubspec
|
||||
|
||||
# The following section is specific to Flutter packages.
|
||||
flutter:
|
||||
|
||||
# The following line ensures that the Material Icons font is
|
||||
# included with your application, so that you can use the icons in
|
||||
# the material Icons class.
|
||||
uses-material-design: true
|
||||
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
# - images/a_dot_ham.jpeg
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
# https://flutter.dev/assets-and-images/#resolution-aware
|
||||
|
||||
# For details regarding adding assets from package dependencies, see
|
||||
# https://flutter.dev/assets-and-images/#from-packages
|
||||
|
||||
# To add custom fonts to your application, add a fonts section here,
|
||||
# in this "flutter" section. Each entry in this list should have a
|
||||
# "family" key with the font family name, and a "fonts" key with a
|
||||
# list giving the asset and other descriptors for the font. For
|
||||
# example:
|
||||
# fonts:
|
||||
# - family: Schyler
|
||||
# fonts:
|
||||
# - asset: fonts/Schyler-Regular.ttf
|
||||
# - asset: fonts/Schyler-Italic.ttf
|
||||
# style: italic
|
||||
# - family: Trajan Pro
|
||||
# fonts:
|
||||
# - asset: fonts/TrajanPro.ttf
|
||||
# - asset: fonts/TrajanPro_Bold.ttf
|
||||
# weight: 700
|
||||
#
|
||||
# For details regarding fonts from package dependencies,
|
||||
# see https://flutter.dev/custom-fonts/#from-packages
|
27
example/test/widget_test.dart
Normal file
@ -0,0 +1,27 @@
|
||||
// This is a basic Flutter widget test.
|
||||
//
|
||||
// To perform an interaction with a widget in your test, use the WidgetTester
|
||||
// utility in the flutter_test package. For example, you can send tap and scroll
|
||||
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||||
// tree, read text, and verify that the values of widget properties are correct.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:jc_printer_example/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Verify Platform version', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
await tester.pumpWidget(const MyApp());
|
||||
|
||||
// Verify that platform version is retrieved.
|
||||
expect(
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) => widget is Text &&
|
||||
widget.data!.startsWith('Running on:'),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
});
|
||||
}
|
38
ios/.gitignore
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
.idea/
|
||||
.vagrant/
|
||||
.sconsign.dblite
|
||||
.svn/
|
||||
|
||||
.DS_Store
|
||||
*.swp
|
||||
profile
|
||||
|
||||
DerivedData/
|
||||
build/
|
||||
GeneratedPluginRegistrant.h
|
||||
GeneratedPluginRegistrant.m
|
||||
|
||||
.generated/
|
||||
|
||||
*.pbxuser
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.perspectivev3
|
||||
|
||||
!default.pbxuser
|
||||
!default.mode1v3
|
||||
!default.mode2v3
|
||||
!default.perspectivev3
|
||||
|
||||
xcuserdata
|
||||
|
||||
*.moved-aside
|
||||
|
||||
*.pyc
|
||||
*sync/
|
||||
Icon?
|
||||
.tags*
|
||||
|
||||
/Flutter/Generated.xcconfig
|
||||
/Flutter/ephemeral/
|
||||
/Flutter/flutter_export_environment.sh
|
0
ios/Assets/.gitkeep
Normal file
4
ios/Classes/JcPrinterPlugin.h
Normal file
@ -0,0 +1,4 @@
|
||||
#import <Flutter/Flutter.h>
|
||||
|
||||
@interface JcPrinterPlugin : NSObject<FlutterPlugin>
|
||||
@end
|
20
ios/Classes/JcPrinterPlugin.m
Normal file
@ -0,0 +1,20 @@
|
||||
#import "JcPrinterPlugin.h"
|
||||
|
||||
@implementation JcPrinterPlugin
|
||||
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
||||
FlutterMethodChannel* channel = [FlutterMethodChannel
|
||||
methodChannelWithName:@"jc_printer"
|
||||
binaryMessenger:[registrar messenger]];
|
||||
JcPrinterPlugin* instance = [[JcPrinterPlugin alloc] init];
|
||||
[registrar addMethodCallDelegate:instance channel:channel];
|
||||
}
|
||||
|
||||
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
|
||||
if ([@"getPlatformVersion" isEqualToString:call.method]) {
|
||||
result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
|
||||
} else {
|
||||
result(FlutterMethodNotImplemented);
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
33
ios/Framework/FWnetworkWIFI.h
Normal file
@ -0,0 +1,33 @@
|
||||
//
|
||||
// FWnetworkWIFI.h
|
||||
// FeasyWifiSDK
|
||||
//
|
||||
// Created by wenyewei on 2019/5/30.
|
||||
// Copyright © 2019年 Feasycom. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
typedef struct Dev
|
||||
{
|
||||
__unsafe_unretained NSString * _Nullable macAddress;
|
||||
unsigned char type[2];
|
||||
unsigned int ip;
|
||||
__unsafe_unretained NSString * _Nonnull dev_name;
|
||||
}Dev_Info;
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@protocol WIFIManagerDelegate <NSObject>
|
||||
-(void)didWIFIContect;
|
||||
-(void)didFindDeviceList:(NSArray *)arr;
|
||||
|
||||
@end
|
||||
@interface FWnetworkWIFI : NSObject
|
||||
@property (weak,nonatomic) id <WIFIManagerDelegate> delegate;
|
||||
@property (strong,nonatomic) NSMutableArray *configDeviceList;
|
||||
+(instancetype)shareManager;
|
||||
-(BOOL)isEnableWIFI;
|
||||
-(void)connectWIFIWithSSID:(NSString *)SSID pass:(NSString *)pass;
|
||||
-(void)startScan;
|
||||
-(void)stop;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
27
ios/Framework/FWnetworkWIFI.mm
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
#include "FWnetworkWIFI.h"
|
||||
|
||||
@implementation FWnetworkWIFI
|
||||
|
||||
+(instancetype)shareManager{
|
||||
FWnetworkWIFI * manager = [super init];
|
||||
return manager;
|
||||
}
|
||||
|
||||
-(BOOL)isEnableWIFI{
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
-(void)connectWIFIWithSSID:(NSString *)SSID pass:(NSString *)pass{
|
||||
|
||||
}
|
||||
-(void)startScan{
|
||||
|
||||
}
|
||||
-(void)stop{
|
||||
|
||||
}
|
||||
|
||||
|
||||
@end
|
BIN
ios/Framework/JCAPI.a
Normal file
680
ios/Framework/JCAPI.h
Normal file
@ -0,0 +1,680 @@
|
||||
//
|
||||
// JCAPI.h
|
||||
// JCPrinterSDK
|
||||
//
|
||||
// Created by ydong on 2019/1/29.
|
||||
// Copyright © 2019 ydong. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
/**
|
||||
建议在iOS9以上系统使用
|
||||
*/
|
||||
|
||||
|
||||
|
||||
typedef NS_ENUM(NSUInteger, JCBarcodeMode){
|
||||
//CODEBAR 1D format.
|
||||
JCBarcodeFormatCodebar ,
|
||||
|
||||
//Code 39 1D format.
|
||||
JCBarcodeFormatCode39 ,
|
||||
|
||||
//Code 93 1D format.
|
||||
JCBarcodeFormatCode93 ,
|
||||
|
||||
//Code 128 1D format.
|
||||
JCBarcodeFormatCode128 ,
|
||||
|
||||
//EAN-8 1D format.
|
||||
JCBarcodeFormatEan8 ,
|
||||
|
||||
//EAN-13 1D format.
|
||||
JCBarcodeFormatEan13 ,
|
||||
|
||||
//ITF (Interleaved Two of Five) 1D format.
|
||||
JCBarcodeFormatITF ,
|
||||
|
||||
//UPC-A 1D format.
|
||||
JCBarcodeFormatUPCA ,
|
||||
|
||||
//UPC-E 1D format.
|
||||
JCBarcodeFormatUPCE
|
||||
};
|
||||
|
||||
typedef NS_ENUM(NSUInteger,JCSDKCacheStatus){
|
||||
JCSDKCacheWillPrinting,
|
||||
JCSDKCachePrinting,
|
||||
JCSDKCacheWillPause,
|
||||
JCSDKCachePaused,
|
||||
JCSDKCacheWillCancel,
|
||||
JCSDKCacheCanceled,
|
||||
JCSDKCacheWillDone,
|
||||
JCSDKCacheDone,
|
||||
JCSDKCacheWillResume,
|
||||
JCSDKCacheResumed,
|
||||
} ;
|
||||
|
||||
typedef NS_ENUM(NSUInteger,JCSDKCammodFontType) {
|
||||
JCSDKCammodFontTypeStandard = 0,
|
||||
JCSDKCammodFontTypeFreestyleScript,
|
||||
JCSDKCammodFontTypeOCRA,
|
||||
JCSDKCammodFontTypeHelveticaNeueLTPro,
|
||||
JCSDKCammodFontTypeTimesNewRoman,
|
||||
JCSDKCammodFontTypeMICR,
|
||||
JCSDKCammodFontTypeTerU24b,
|
||||
JCSDKCammodFontTypeSimpleChinese16Point = 55,
|
||||
JCSDKCammodFontTypeSimpleChinese24Point
|
||||
};
|
||||
|
||||
typedef NS_ENUM(NSUInteger,JCSDKCammodRotation) {
|
||||
JCSDKCammodRotationDefault = 0,
|
||||
JCSDKCammodRotation90 = 90,
|
||||
JCSDKCammodRotation180 = 180,
|
||||
JCSDKCammodRotation270 = 270
|
||||
};
|
||||
|
||||
typedef NS_ENUM(NSUInteger,JCSDKCammodGraphicsType) {
|
||||
JCSDKCammodGraphicsTypeHorizontalExt ,
|
||||
JCSDKCammodGraphicsTypeVerticalExt,
|
||||
JCSDKCammodGraphicsTypeHorizontalZip,
|
||||
JCSDKCammodGraphicsTypeVerticalZip
|
||||
};
|
||||
|
||||
typedef void (^DidOpened_Printer_Block) (BOOL isSuccess) ;
|
||||
typedef void (^DidPrinted_Block) (BOOL isSuccess) ;
|
||||
typedef void (^PRINT_INFO) (NSString * printInfo) ;
|
||||
typedef void (^PRINT_STATE) (BOOL isSuccess) ;
|
||||
typedef void (^PRINT_DIC_INFO) (NSDictionary * printDicInfo) ;
|
||||
typedef void (^JCSDKCACHE_STATE) (JCSDKCacheStatus status) ;
|
||||
|
||||
|
||||
@interface JCAPI : NSObject
|
||||
|
||||
|
||||
/// @{@"serial":@"V1.0.0",@"date":@"2021/05/06",@"description":@"描述"}
|
||||
+ (NSDictionary *)version;
|
||||
|
||||
|
||||
/// 设置连接的打印机厂商id,需要在连接之前设置
|
||||
/// id: 缺省0 ,1-精臣系。 2-B3系。 3-B11系。 4-T2系
|
||||
/// @param printerFactoryId 厂商id
|
||||
+ (void)setPrinterFactoryId:(NSInteger)printerFactoryId;
|
||||
|
||||
|
||||
/// 设置第三方接入的对象类名
|
||||
/// @param className 类名,必须遵守JC_MyPrinterProtocol协议
|
||||
+ (void)setPrinterFactoryTool:(NSString *)className;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi获取搜索到的打印机列表。
|
||||
wifi回调: @[@{@"ipAdd":@"ip地址", @"bleName":@"蓝牙名字"}]
|
||||
|
||||
@param isWifi YES:为搜索Wi-Fi,NO为搜索蓝牙
|
||||
@param completion 打印机名字数组block(该名字为连接打印机时的printerName参数)
|
||||
*/
|
||||
+ (void)scanPrinterNames:(BOOL)isWifi completion:(void(^)(NSArray *scanedPrinterNames))completion;
|
||||
|
||||
|
||||
/**
|
||||
蓝牙连接指定名称的打印机。
|
||||
|
||||
@param printerName 打印机名称。
|
||||
@param completion 连接打印机是否成功。(连接状态改变通过该回调返回)
|
||||
*/
|
||||
+ (void)openPrinter:(NSString *)printerName
|
||||
completion:(DidOpened_Printer_Block)completion;
|
||||
|
||||
/**
|
||||
打印机类型,连接成功后才能使用,其它厂家打印机返回@“”/@“0”,精臣系打印机返回
|
||||
hBit = value/256
|
||||
lBit = value%256
|
||||
B3S: hBit/lBit = 1
|
||||
D11: hBit/lBit = 2
|
||||
B21: hBit = 3
|
||||
{
|
||||
L2B: lBit = 1
|
||||
L2W: lBit = 2
|
||||
C2B: lBit = 3
|
||||
C2W: lBit = 4
|
||||
C3B: lBit = 5
|
||||
C3W: lBit = 6
|
||||
}
|
||||
P1: hBit/lBit = 4
|
||||
B16: hBit/lBit = 7
|
||||
@return 返回打印机类型
|
||||
*/
|
||||
+(NSInteger )printerTypeInfo;
|
||||
|
||||
|
||||
/**
|
||||
蓝牙关闭打开的打印机连接。
|
||||
*/
|
||||
+ (void)closePrinter;
|
||||
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi获取当前连接的打印机名称(Wi-Fi为ip地址)。
|
||||
|
||||
@return 当前连接的打印机名称。
|
||||
*/
|
||||
+ (NSString *)connectingPrinterName;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi连接状态
|
||||
|
||||
@return 2表示连接Wi-Fi,1表示连接蓝牙,0表示无连接
|
||||
*/
|
||||
+ (int)isConnectingState;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi设置打印机。
|
||||
|
||||
@param state 参数为20-30 @param type 对应参数如下
|
||||
21-设置打印浓度 1—淡,2—正常, 3—浓, 4-较浓 5-最浓;(打价器仍只有三挡:1,2,3)
|
||||
22-设置打印速度 1—慢, 2—稍慢, 3—正常, 4—稍快, 5—快;(打价器速度三挡)
|
||||
23-设置纸张类型 1—间隙纸, 2—黑标纸, 3—连续纸,4-定孔纸,5-透明纸(4,目前还没有)
|
||||
24-设置马达驱动(预留) 1
|
||||
25-设置自动出纸(预留) 1、2、3
|
||||
26-设置打印机语言; 1-中文,2-英文
|
||||
27-设置自动关机时间 N分钟 1-4(
|
||||
1:15min;
|
||||
2:30min;
|
||||
3:60min(D11为45分钟);
|
||||
4:从不(D11为60分钟)
|
||||
)
|
||||
28-恢复出厂设置 1
|
||||
29-纸张类型标定 1
|
||||
20-打印模式,限T2支持 1-热敏模式。 2-热感应模式(碳带模式)
|
||||
30-音量设置(0-5档)
|
||||
31-设置机器防伪
|
||||
@param completion 是否设置成功。
|
||||
*/
|
||||
+ (void)setPrintState:(NSInteger)state type:(NSInteger)type sucess:(PRINT_DIC_INFO)completion;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi获取打印机信息。b11系列只有9&12
|
||||
|
||||
@param type 1-打印浓度
|
||||
2-打印速度
|
||||
3-纸张类型
|
||||
4-马达驱动(预留)
|
||||
5-自动出纸(预留)
|
||||
6-打印机语言
|
||||
7-自动关机时间
|
||||
8-机器型号
|
||||
9-软件版本(固件版本)
|
||||
10-当前电量
|
||||
11-机器序列号
|
||||
12-硬件版本
|
||||
13-硬件参数信息(如:电池电压等)----(后面去掉该类型支持)
|
||||
14-历史打印信息。
|
||||
15-获取打印机读取成功次数信息(仅支持b21打印机,V2.11支持d11系列3.28以上版本)
|
||||
16-查询打印机配网状态(仅支持b21打印机)
|
||||
19-获取mac地址
|
||||
20-打印模式(1、热敏 2、热感应)
|
||||
21-获取打印机内置地区码
|
||||
|
||||
@param completion 返回对应的信息。@"UNRESOPN_ERROR"表示获取信息超时
|
||||
*/
|
||||
+ (void)getPrintInfo:(NSInteger)type sucess:(PRINT_DIC_INFO)completion;
|
||||
|
||||
/**
|
||||
根据传入参数获取所有的信息
|
||||
|
||||
@param completion 获取后的回调
|
||||
@param arg 参数列表,最大支持10个,必须是+ (void)getPrintInfo:(NSInteger)type sucess:(PRINT_DIC_INFO)completion所支持的type类型,返回结果和传入arg对应的健值对
|
||||
*/
|
||||
+ (void)getInfosWithComplete:(PRINT_DIC_INFO)completion fromArgs:(NSInteger)arg, ...NS_REQUIRES_NIL_TERMINATION;
|
||||
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi是否支持盒盖状态检测
|
||||
|
||||
@return YES:支持、NO:不支持
|
||||
*/
|
||||
+ (BOOL)isSupportPrintCoverStatus;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi盒盖状态改变返回(在连接成功后调用)
|
||||
|
||||
@param completion 盒盖状态:0打开、1关闭
|
||||
@param checkPaperBlock 当前打印机是否有耗材:0没有、1有
|
||||
@return 是否支持盒盖状态检测:YES:支持、NO:不支持
|
||||
*/
|
||||
+ (BOOL)getPrintCoverStatusChange:(PRINT_INFO)completion withCheckPrinterHavePaperBlock:(PRINT_INFO)checkPaperBlock;
|
||||
|
||||
/**
|
||||
监听打印机状态变化
|
||||
|
||||
@param completion
|
||||
@{
|
||||
@"1": 盒盖状态-0打开/1关闭
|
||||
@"2": 电量等级变化-1/2/3/4
|
||||
@"3": 是否装有纸张-0没有/1有
|
||||
@"5": 碳带状态-0无碳带/1有碳带
|
||||
}
|
||||
@return 是否支持监听打印机状态变化:YES:支持、NO:不支持
|
||||
*/
|
||||
+ (BOOL)getPrintStatusChange:(PRINT_DIC_INFO)completion;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi是否支持缺纸检测等功能(目前app没有用到具体功能接口,替换为该接口)
|
||||
|
||||
@return 是否支持:YES:支持、NO:不支持
|
||||
*/
|
||||
+ (BOOL)isSupportNOPaper;
|
||||
|
||||
/**
|
||||
p1打印机打印前传入总打印份数,startDraw:height:orientation:之前调用/startJob之前调用
|
||||
|
||||
@param totalQuantityOfPrints 总份数
|
||||
*/
|
||||
+ (void)setTotalQuantityOfPrints:(NSInteger)totalQuantityOfPrints;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi生成带延长线条码最小宽度,单位像素。
|
||||
|
||||
@param text 条码内容。
|
||||
@param barcodeMode 条码类型。
|
||||
@param isExtension 是否带延长线:YES为带,NO未不带。
|
||||
@return 条码最小宽度。
|
||||
*/
|
||||
+ (NSInteger)getBarCodeWidth:(NSString *)text codeFormat:(JCBarcodeMode)barcodeMode isExtension:(BOOL)isExtension;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi生成二维码最小宽度,单位像素。
|
||||
|
||||
@param text 二维码内容。
|
||||
@return 二维码最小宽/高。
|
||||
*/
|
||||
+ (NSInteger)getQRCodeWidth:(NSString *)text;
|
||||
|
||||
|
||||
/// 0-正常,1-不支持的类型,2-数据异常,3-长度不符,4-字符不符,5-校验码不符
|
||||
/// @param barcodeType 条码类型(20-28)
|
||||
/// @param content 传入的条码数据
|
||||
+ (int)barcodeFormatCheck:(int)barcodeType content:(NSString*)content ;
|
||||
|
||||
|
||||
/// 0-正常,1-不支持的类型,2-数据异常,3-长度不符,4-字符不符
|
||||
/// @param qrcodeType 条码类型(31-34)
|
||||
/// @param content 传入的二维码数据
|
||||
+ (int)qrcodeFormatCheck:(int)qrcodeType content:(NSString*)content;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi返回处理后的条码内容。
|
||||
|
||||
@param text 条码内容。
|
||||
@param barcodeMode 条码类型。
|
||||
@return 处理后的条码内容(也可用于检查条码内容是否规范,@"":表示出错)
|
||||
*/
|
||||
+ (NSString *)dealBarCodeText:(NSString *)text withBarcodeMode:(JCBarcodeMode)barcodeMode;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi获取第几页预览图(在print:之前获取)。
|
||||
|
||||
@param index 第几页(从0开始)
|
||||
@return 预览图
|
||||
*/
|
||||
+ (UIImage *)previewImage:(NSInteger)index;
|
||||
|
||||
|
||||
/// 打印时获取预览图
|
||||
+ (UIImage *)getPrintPreviewImage;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi图片直接生成预览图图片。
|
||||
|
||||
@param image 图像对象。
|
||||
@param width 打印对象的尺寸,单位毫米。
|
||||
@param height 打印对象的尺寸,单位毫米。
|
||||
@param orientation 旋转角度:0:不旋转;90:顺时针旋转90度;180:旋转180度;270:逆时针旋转90度。
|
||||
@return 预览图
|
||||
*/
|
||||
+ (UIImage *)drawpreviewImagFromImage:(UIImage *)image
|
||||
width:(CGFloat)width
|
||||
height:(CGFloat)height
|
||||
orientation:(NSInteger)orientation;
|
||||
|
||||
|
||||
|
||||
|
||||
/// 图像二期打印json数据
|
||||
/// @param printData json数据
|
||||
/// @param printerJson 打印机边距信息
|
||||
/// @param onePageNumvers 单页要打印的份数
|
||||
/// @param completion 回调
|
||||
+ (void)print:(NSString *)printData printAddJson:(NSDictionary *)printerJson withOnePageNumbers:(int)onePageNumvers withComplete:(DidPrinted_Block)completion;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi取消打印(打印未完成调用)。
|
||||
|
||||
@param completion 打印结束回调(在发生异常后不会返回)
|
||||
*/
|
||||
+ (void)cancelJob:(DidPrinted_Block)completion;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi打印完成(打印完成后调用)。
|
||||
|
||||
@param completion 打印结束回调(在发生异常后不会返回)
|
||||
*/
|
||||
+ (void)endPrint:(DidPrinted_Block)completion;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi打价器打印完成的份数(只对打价器有效,可能部分丢失,app做超时重置状态)。
|
||||
|
||||
@param count 打印完成的份数(在发生异常后不会返回)
|
||||
@{
|
||||
@"totalCount":@"总打印的张数计数" //返回必带的key
|
||||
@"pageCount":@"当前打印第PageNo页的第几份" //非必带
|
||||
@"pageNO":@"当前打印第几页"。 //非必带
|
||||
@"tid":@"写入rfid返回的tid码" //非必带
|
||||
@"carbonUsed":@"碳带使用量,单位毫米" //非必带
|
||||
}
|
||||
*/
|
||||
+ (void)getPrintingCountInfo:(PRINT_DIC_INFO)count;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi异常接收(连接成功后调用)。
|
||||
|
||||
@param error 打印异常:1:盒盖打开,
|
||||
2:缺纸,
|
||||
3:电量不足,
|
||||
4:电池异常,
|
||||
5:手动停止,
|
||||
6:数据错误,
|
||||
(提交打印数据失败-B3/图像生成失败/发送数据错误,打印机校验不通过打印机返回)
|
||||
7:温度过高,
|
||||
8:出纸异常,
|
||||
9-打印忙碌(当前正在转动马达(正在打印中或者走纸)/打印机正在升级固件)
|
||||
10-没有检测到打印头
|
||||
11-环境温度过低
|
||||
12.打印头未锁紧
|
||||
13-未检测到碳带
|
||||
14-不匹配的碳带
|
||||
15-用完的碳带
|
||||
16-不支持的纸张类型
|
||||
17-设置纸张失败
|
||||
18-设置打印模式失败
|
||||
19-设置打印浓度失败(允许打印,仅上报异常)
|
||||
20-写入Rfid失败
|
||||
21-边距设置错误
|
||||
(边距必须大于0,上边距+下边距必须小于画板高度,左边距+右边距必须小于画板宽度)
|
||||
22-通讯异常(超时,打印机指令一直拒绝)
|
||||
23-打印机断开
|
||||
24-画板参数设置错误
|
||||
25-旋转角度参数错误
|
||||
26-json参数错误(pc)
|
||||
27-出纸异常(关闭上盖检测)
|
||||
28-检查纸张类型
|
||||
29-RFID标签进行非RFID模式打印时
|
||||
30-浓度设置不支持
|
||||
31-不支持的打印模式
|
||||
32-标签材质设置失败(材质设置超时或者失败,不阻断正常打印)
|
||||
33-不支持的标签材质设置(阻断正常打印)
|
||||
34-打印机异常(阻断正常打印)
|
||||
35-切刀异常(T2阻断正常打印)
|
||||
36-缺纸(T2未放纸)
|
||||
37-打印机异常(T2无法通过指令恢复,需要手动按打印机)
|
||||
*/
|
||||
+ (void)getPrintingErrorInfo:(PRINT_INFO)error;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi像素转毫米(会对像素进行处理)。
|
||||
|
||||
@param pixel 像素
|
||||
@return 绘制参数
|
||||
*/
|
||||
+ (CGFloat)pixelToMm:(CGFloat)pixel;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi毫米转像素(会对毫米进行处理)。
|
||||
|
||||
@param mm 毫米
|
||||
@return 绘制参数
|
||||
*/
|
||||
+ (CGFloat)mmToPixel:(CGFloat)mm;
|
||||
|
||||
/**
|
||||
蓝牙/Wi-Fi打印机分辨率
|
||||
|
||||
@return 返回对应的打印机分辨率(连接打印机后有效)
|
||||
*/
|
||||
+ (NSInteger)printerResolution;
|
||||
+ (float)printerMulityDpiToMm;
|
||||
|
||||
/// 设置字体路径
|
||||
/// @param fontFamilyPath 路径
|
||||
+(void) initImageProcessing:(NSString *) fontFamilyPath error:(NSError **)error;
|
||||
|
||||
/// 准备打印
|
||||
/// @param blackRules 设置浓度
|
||||
/// @param paperStyle 设置纸张
|
||||
/// @param completion 回调
|
||||
+ (void)startJob:(int)blackRules
|
||||
withPaperStyle:(int)paperStyle
|
||||
withCompletion:(DidPrinted_Block)completion;
|
||||
|
||||
|
||||
/// 图像二期毫米转像素
|
||||
/// @param mm 毫米
|
||||
/// @param scaler 倍率
|
||||
+ (int) mmToPixel:(float)mm scaler:(float)scaler;
|
||||
|
||||
/// 图像二期像素转毫米
|
||||
/// @param pixel 像素
|
||||
/// @param scaler 倍率
|
||||
+ (float) pixelToMm:(int)pixel scaler:(float)scaler;
|
||||
|
||||
/// 获取倍率
|
||||
/// @param templatePhysical 屏幕物理尺寸
|
||||
/// @param screenDisplaySize 屏幕分辨率
|
||||
+ (float)getDisplayMultiple:(float)templatePhysical templateDisplayWidth:(int)screenDisplaySize;
|
||||
|
||||
|
||||
/// 毫米转英寸
|
||||
/// @param mm 毫米
|
||||
+(float) mmToInch:(float) mm;
|
||||
|
||||
/// 英寸转毫米
|
||||
/// @param inch 英寸
|
||||
+(float) inchToMm:(float) inch;
|
||||
|
||||
|
||||
|
||||
|
||||
+(void)didReadSDKCacheStatus:(JCSDKCACHE_STATE)status;
|
||||
|
||||
+(void)setPrintWithCache:(BOOL)startCache;
|
||||
|
||||
|
||||
/// 是否支持RFID写入功能
|
||||
+(BOOL)isSupportWriteRFID;
|
||||
|
||||
|
||||
/// 绘制画板
|
||||
/// @param width 宽
|
||||
/// @param height 高
|
||||
/// @param horizontalShift 水平偏移
|
||||
/// @param verticalShift 竖直偏移
|
||||
/// @param rotate 旋转角度
|
||||
/// @param font 使用字体路径,缺省输入nil
|
||||
+(void)initDrawingBoard:(float)width
|
||||
withHeight:(float)height
|
||||
withHorizontalShift:(float)horizontalShift
|
||||
withVerticalShift:(float)verticalShift
|
||||
rotate:(int) rotate
|
||||
font:(NSString*)font;
|
||||
|
||||
|
||||
/// 绘制文本
|
||||
/// @param x 水平起点
|
||||
/// @param y 竖直起点
|
||||
/// @param w 宽
|
||||
/// @param h 高
|
||||
/// @param text 内容
|
||||
/// @param fontFamily 字体
|
||||
/// @param fontSize 字体大小
|
||||
/// @param rotate 旋转
|
||||
/// @param textAlignHorizonral 文本水平对齐方式 0:左对齐 1:居中对齐 2:右对齐
|
||||
/// @param textAlignVertical 文本竖直对齐方式 0:顶对齐 1:垂直居中 2:底对齐
|
||||
/// @param lineMode 换行方式
|
||||
/// @param letterSpacing 字体间隔
|
||||
/// @param lineSpacing 行间隔
|
||||
/// @param fontStyles [@1,@1,@1,@1] 斜体,加粗,下划线,删除下划线
|
||||
+(BOOL)drawLableText:(float)x
|
||||
withY:(float)y
|
||||
withWidth:(float)w
|
||||
withHeight:(float)h
|
||||
withString:(NSString *)text
|
||||
withFontFamily:(NSString *)fontFamily
|
||||
withFontSize:(float)fontSize
|
||||
withRotate:(int)rotate
|
||||
withTextAlignHorizonral:(int)textAlignHorizonral
|
||||
withTextAlignVertical:(int)textAlignVertical
|
||||
withLineMode:(int)lineMode
|
||||
withLetterSpacing:(float)letterSpacing
|
||||
withLineSpacing:(float)lineSpacing
|
||||
withFontStyle:(NSArray <NSNumber *>*)fontStyles;
|
||||
|
||||
|
||||
/// 绘制条码
|
||||
/// @param x 水平坐标
|
||||
/// @param y 垂直坐标
|
||||
/// @param w 标贴宽度,单位mm
|
||||
/// @param h 标贴高度,单位mm
|
||||
/// @param text 文本内容
|
||||
/// @param fontSize 文本字号
|
||||
/// @param rotate 旋转角度,仅支持0,90,180,270
|
||||
/// @param codeType 一维码类型 20:CODE128 21:UPC-A 22:UPC-E 23:EAN8 24:EAN13 25:CODE93 26:CODE39 27:CODEBAR 28:ITF25
|
||||
/// @param textHeight 文本高度
|
||||
/// @param textPosition 文本位置,int 一维码文字识别码显示位置 0:下方显示 1:上方显示 2:不显示
|
||||
+(BOOL)drawLableBarCode:(float)x
|
||||
withY:(float)y
|
||||
withWidth:(float)w
|
||||
withHeight:(float)h
|
||||
withString:(NSString *)text
|
||||
withFontSize:(float)fontSize
|
||||
withRotate:(int)rotate
|
||||
withCodeType:(int)codeType
|
||||
withTextHeight:(float)textHeight
|
||||
withTextPosition:(int)textPosition;
|
||||
|
||||
|
||||
/// 绘制二维码
|
||||
/// @param x 水平坐标
|
||||
/// @param y 垂直坐标
|
||||
/// @param w 标贴宽度,单位mm
|
||||
/// @param h 标贴高度,单位mm
|
||||
/// @param text 文本内容
|
||||
/// @param rotate 旋转角度,仅支持0,90,180,270
|
||||
/// @param codeType 二维码类型 31:QR_CODE 32:PDF417 33:DATA_MATRIX 34:AZTEC
|
||||
+(BOOL)drawLableQrCode:(float)x
|
||||
withY:(float)y
|
||||
withWidth:(float)w
|
||||
withHeight:(float)h
|
||||
withString:(NSString *)text
|
||||
withRotate:(int)rotate
|
||||
withCodeType:(int)codeType;
|
||||
|
||||
|
||||
/// 绘制线条
|
||||
/// @param x 水平坐标
|
||||
/// @param y 垂直坐标
|
||||
/// @param w 标贴宽度,单位mm
|
||||
/// @param h 标贴高度,单位mm
|
||||
/// @param rotate 旋转角度,仅支持0,90,180,270
|
||||
/// @param lineType 线条类型 1:实线 2:虚线类型,虚实比例1:1
|
||||
/// @param dashWidth 线条为虚线宽度,【实线段长度,空线段长度】
|
||||
+(BOOL)DrawLableLine:(float)x
|
||||
withY:(float)y
|
||||
withWidth:(float)w
|
||||
withHeight:(float)h
|
||||
withRotate:(int)rotate
|
||||
withLineType:(int)lineType
|
||||
withDashWidth:(NSArray <NSNumber *>*)dashWidth;
|
||||
|
||||
|
||||
/// 绘制形状
|
||||
/// @param x 水平坐标
|
||||
/// @param y 垂直坐标
|
||||
/// @param w 标贴宽度,单位mm
|
||||
/// @param h 标贴高度,单位mm
|
||||
/// @param lineWidth 线条类型
|
||||
/// @param cornerRadius 图像圆角
|
||||
/// @param rotate 旋转角度,仅支持0,90,180,270
|
||||
/// @param graphType 图形类型
|
||||
/// @param lineType 线条类型 1:实线 2:虚线类型,虚实比例1:1
|
||||
/// @param dashWidth 线条为虚线宽度,【实线段长度,空线段长度】
|
||||
+(BOOL)DrawLableGraph:(float)x
|
||||
withY:(float)y
|
||||
withWidth:(float)w
|
||||
withHeight:(float)h
|
||||
withLineWidth:(float)lineWidth
|
||||
withCornerRadius:(float)cornerRadius
|
||||
withRotate:(int)rotate
|
||||
withGraphType:(int)graphType
|
||||
withLineType:(int)lineType
|
||||
withDashWidth:(NSArray <NSNumber *>*)dashWidth;
|
||||
|
||||
|
||||
/// 绘制图片
|
||||
/// @param x 水平坐标
|
||||
/// @param y 垂直坐标
|
||||
/// @param w 标贴宽度,单位mm
|
||||
/// @param h 标贴高度,单位mm
|
||||
/// @param imageData 图像base64数据
|
||||
/// @param rotate 旋转角度,仅支持0,90,180,270
|
||||
/// @param imageProcessingType 处理算法
|
||||
/// @param imageProcessingValue 阈值
|
||||
+(BOOL)DrawLableImage:(float)x
|
||||
withY:(float)y
|
||||
withWidth:(float)w
|
||||
withHeight:(float)h
|
||||
withImageData:(NSString *)imageData
|
||||
withRotate:(int)rotate
|
||||
withImageProcessingType:(int)imageProcessingType
|
||||
withImageProcessingValue:(float)imageProcessingValue;
|
||||
|
||||
+(NSString *)GenerateLableJson;
|
||||
|
||||
|
||||
/// 获取预览图
|
||||
/// @param displayScale 倍率
|
||||
/// @param error 出错返回的错误码
|
||||
+(UIImage *)generateImagePreviewImage:(float)displayScale error:(NSError **)error;
|
||||
|
||||
|
||||
/// 开始打印
|
||||
/// @param printData 打印数据
|
||||
/// @param onePageNumvers 打印份数
|
||||
/// @param completion 回调
|
||||
+ (void)commit:(NSString *)printData
|
||||
withOnePageNumbers:(int)onePageNumvers
|
||||
withComplete:(DidPrinted_Block)completion;
|
||||
|
||||
|
||||
#pragma mark ###################双色打印##################
|
||||
|
||||
/// 是否是双色打印机,需要连接成功之后调用
|
||||
+(int) getPrinterColorType;
|
||||
|
||||
|
||||
/// 准备打印
|
||||
/// @param blackRules 设置浓度
|
||||
/// @param paperStyle 设置纸张
|
||||
/// @param completion 回调
|
||||
+ (void)startJob:(int)blackRules
|
||||
withPaperStyle:(int)paperStyle
|
||||
withColorType:(int)colorType
|
||||
withCompletion:(DidPrinted_Block)completion;
|
||||
|
||||
@end
|
||||
|
BIN
ios/Framework/JCSDKFont.bundle/Info.plist
Normal file
BIN
ios/Framework/JCSDKFont.bundle/SourceHanSans-Regular.ttc
Normal file
369
ios/Framework/JCSDKFont.bundle/language.json
Normal file
@ -0,0 +1,369 @@
|
||||
{
|
||||
"0020-007F": {
|
||||
"description":"Basic_Latin",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"00A0-00FF":{
|
||||
"description":"Latin-1_Supplement",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"0100-017F":{
|
||||
"description":"Latin Extended-A",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"0370-03FF": {
|
||||
"description":"Greek and Coptic",
|
||||
"fontFile":""
|
||||
},
|
||||
"10A0-10FF": {
|
||||
"description":"Georgian",
|
||||
"fontFile":"NotoSansGeorgian-Regular.otf"
|
||||
},
|
||||
"0400-04FF": {
|
||||
"description":"Cyrillic",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"0500-052F": {
|
||||
"description":"Cyrillic Supplementary",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"0530-058F": {
|
||||
"description":"Armenian",
|
||||
"fontFile":"NotoSansArmenian-Regular.otf"
|
||||
},
|
||||
"0590-05FF":{
|
||||
"description":"Hebrew",
|
||||
"fontFile":"NotoSansHebrew-Regular.ttf"
|
||||
},
|
||||
"0600-06FF":{
|
||||
"description":"Arabic",
|
||||
"fontFile":"NotoNaskhArabic-Regular.ttf"
|
||||
},
|
||||
"0700-074F":{
|
||||
"description":"Syriac",
|
||||
"fontFile":"NotoSansSyriacEstrangela-Regular.ttf"
|
||||
},
|
||||
"0780-07BF":{
|
||||
"description":"Thaana",
|
||||
"fontFile":"NotoSansThaana-Regular.ttf"
|
||||
},
|
||||
"0900-097F":{
|
||||
"description":"Devanagari",
|
||||
"fontFile":"NotoSansDevanagari-Regular.otf"
|
||||
},
|
||||
"0980-09FF":{
|
||||
"description":"Bengali",
|
||||
"fontFile":"NotoSansBengali-Regular.otf"
|
||||
},
|
||||
"0A00-0A7F":{
|
||||
"description":"Gurmukhi",
|
||||
"fontFile":"NotoSansGurmukhi-Regular.ttf"
|
||||
},
|
||||
"0B00-0B7F":{
|
||||
"description":"Oriya",
|
||||
"fontFile":"NotoSansOriya-Regular.ttf"
|
||||
},
|
||||
"0B80-0BFF":{
|
||||
"description":"Tamil",
|
||||
"fontFile":"NotoSansTamil-Regular.otf"
|
||||
},
|
||||
"0C00-0C7F":{
|
||||
"description":"Telugu",
|
||||
"fontFile":"NotoSansTelugu-Regular.ttf"
|
||||
},
|
||||
"0C80-0CFF":{
|
||||
"description":"Kannada",
|
||||
"fontFile":"NotoSansKannada-Regular.ttf"
|
||||
},
|
||||
"0D00-0D7F":{
|
||||
"description":"Malayalam",
|
||||
"fontFile":"NotoSansMalayalam-Regular.otf"
|
||||
},
|
||||
"0D80-0DFF":{
|
||||
"description":"Sinhala",
|
||||
"fontFile":"NotoSansSinhala-Regular.otf"
|
||||
},
|
||||
"0E00-0E7F":{
|
||||
"description":"Thai",
|
||||
"fontFile":"NotoSansThai-Regular.ttf"
|
||||
},
|
||||
"0E80-0EFF":{
|
||||
"description":"Lao",
|
||||
"fontFile":"NotoSansLao-Regular.ttf"
|
||||
},
|
||||
"0F00-0FFF":{
|
||||
"description":"Tibetan",
|
||||
"fontFile":"NotoSansTibetan-Regular.ttf"
|
||||
},
|
||||
"1000-109F":{
|
||||
"description":"Myanmar",
|
||||
"fontFile":"NotoSansMyanmar-Regular-ZawDecode.ttf"
|
||||
},
|
||||
"10000-1007F":{
|
||||
"description":"Linear B Syllabary",
|
||||
"fontFile":"NotoSansLinearB-Regular.ttf"
|
||||
},
|
||||
"10080-100FF":{
|
||||
"description":"Linear B Ideograms",
|
||||
"fontFile":"NotoSansLinearB-Regular.ttf"
|
||||
},
|
||||
"10380-1039F":{
|
||||
"description":"Ugaritic",
|
||||
"fontFile":"NotoSansUgaritic-Regular.ttf"
|
||||
},
|
||||
"10450-1047F":{
|
||||
"description":"Shavian",
|
||||
"fontFile":"NotoSansShavian-Regular.ttf"
|
||||
},
|
||||
"10400-1044F":{
|
||||
"description":"Deseret",
|
||||
"fontFile":"NotoSansDeseret-Regular.ttf"
|
||||
},
|
||||
"10480-104AF":{
|
||||
"description":"Osmanya",
|
||||
"fontFile":"NotoSansOsmanya-Regular.ttf"
|
||||
},
|
||||
"10800-1083F":{
|
||||
"description":"Cypriot ",
|
||||
"fontFile":"NotoSansCypriot-Regular.ttf"
|
||||
},
|
||||
"1200-137F":{
|
||||
"description":"Ethiopic",
|
||||
"fontFile":"NotoSansEthiopic-Regular.ttf"
|
||||
},
|
||||
"13A0-13FF":{
|
||||
"description":"Cherokee",
|
||||
"fontFile":"NotoSansCherokee-Regular.ttf"
|
||||
},
|
||||
"1400-167F":{
|
||||
"description":"Unified Canadian Aboriginal Syllabics",
|
||||
"fontFile":"NotoSansCanadianAboriginal-Regular.ttf"
|
||||
},
|
||||
"1680-169F":{
|
||||
"description":"Ogham",
|
||||
"fontFile":"NotoSansOgham-Regular.ttf"
|
||||
},
|
||||
"16A0-16FF":{
|
||||
"description":"Runic",
|
||||
"fontFile":"NotoSansRunic-Regular.ttf"
|
||||
},
|
||||
"1700-171F":{
|
||||
"description":"Tagalog",
|
||||
"fontFile":"NotoSansTagalog-Regular.ttf"
|
||||
},
|
||||
"1720-173F":{
|
||||
"description":"Hanunoo",
|
||||
"fontFile":"NotoSansHanunoo-Regular.ttf"
|
||||
},
|
||||
"1740-175F":{
|
||||
"description":"Buhid",
|
||||
"fontFile":"NotoSansBuhid-Regular.ttf"
|
||||
},
|
||||
"1760-177F":{
|
||||
"description":"Tagbanwa",
|
||||
"fontFile":"NotoSansTagbanwa-Regular.ttf"
|
||||
},
|
||||
"1780-17FF":{
|
||||
"description":"Khmer",
|
||||
"fontFile":"NotoSansKhmer-VF.ttf"
|
||||
},
|
||||
"1800-18AF":{
|
||||
"description":"Mongolian",
|
||||
"fontFile":"NotoSansMongolian-Regular.ttf"
|
||||
},
|
||||
"1900-194F":{
|
||||
"description":"Limbu",
|
||||
"fontFile":"NotoSansLimbu-Regular.ttf"
|
||||
},
|
||||
"1950-197F":{
|
||||
"description":"Tai Le",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"19E0-19FF":{
|
||||
"description":"Khmer Symbols",
|
||||
"fontFile":"NotoSansKhmer-VF.ttf"
|
||||
},
|
||||
"1D000-1D0FF":{
|
||||
"description":"Byzantine Musical Symbols",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted.ttf"
|
||||
},
|
||||
"1D300-1D35F@Tai Xuan Jing Symbols":{
|
||||
"description":"Tai Xuan Jing Symbols",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"1E00-1EFF":{
|
||||
"description":"Latin Extended Additional",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"1F00-1FFF":{
|
||||
"description":"Greek Extended",
|
||||
"fontFile":"NotoSansSylotiNagri-Regular.ttf"
|
||||
},
|
||||
"2000-206F":{
|
||||
"description":"General Punctuation",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"20000-2A6DF":{
|
||||
"description":"CJK",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"20A0-20CF":{
|
||||
"description":"Currency Symbols",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted2.ttf"
|
||||
},
|
||||
"20D0-20FF":{
|
||||
"description":"Combining Diacritical Marks for Symbols",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted2.ttf"
|
||||
},
|
||||
"2100-214F":{
|
||||
"description":"Letterlike Symbols",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted.ttf"
|
||||
},
|
||||
"2200-22FF":{
|
||||
"description":"Tai Le",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted.ttf"
|
||||
},
|
||||
"2300-23FF":{
|
||||
"description":"Miscellaneous Technical",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted.ttf"
|
||||
},
|
||||
"2400-243F":{
|
||||
"description":"Control Pictures",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"2440-245F":{
|
||||
"description":"Optical Character Recognition",
|
||||
"fontFile":"NotoSansGujarati-Regular.ttf"
|
||||
},
|
||||
"2460-24FF":{
|
||||
"description":"Enclosed Alphanumerics",
|
||||
"fontFile":"NotoSansGujarati-Regular.ttf"
|
||||
},
|
||||
"2500-257F":{
|
||||
"description":"Box Drawing",
|
||||
"fontFile":"NotoSansGujarati-Regular.ttf"
|
||||
},
|
||||
"2580-259F":{
|
||||
"description":"Block Elements",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"25A0-25FF":{
|
||||
"description":"Geometric Shapes",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"2600-26FF":{
|
||||
"description":"Miscellaneous Symbols",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted.ttf"
|
||||
},
|
||||
"2700-27BF":{
|
||||
"description":"Dingbats",
|
||||
"fontFile":"NotoSansTaiLe-Regular.ttf"
|
||||
},
|
||||
"27C0-27EF":{
|
||||
"description":"@Miscellaneous Mathematical Symbols-A",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted.ttf"
|
||||
},
|
||||
"27F0-27FF":{
|
||||
"description":"@Supplemental Arrows-A",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"2800-28FF":{
|
||||
"description":"Braille Patterns",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"2900-297F":{
|
||||
"description":"@Supplemental Arrows-B",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"2980-29FF":{
|
||||
"description":"Miscellaneous Mathematical Symbols-B",
|
||||
"fontFile":"NotoSansSymbols-Regular-Subsetted2.ttf"
|
||||
},
|
||||
"2A00-2AFF":{
|
||||
"description":"@Supplemental Mathematical Operators",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"2B00-2BFF":{
|
||||
"description":"@Miscellaneous Symbols and Arrows",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"2E80-2EFF":{
|
||||
"description":"CJK Radicals Supplement",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"2F800-2FA1F":{
|
||||
"description":"Tai Le",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"3040-309F":{
|
||||
"description":"Hiragana",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"30A0-30FF@Katakana":{
|
||||
"description":"Katakana",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"3100-312F@Bopomofo":{
|
||||
"description":"Bopomofo",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"3130-318F":{
|
||||
"description":"Hangul Compatibility Jamo",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"3190-319F":{
|
||||
"description":"Kanbun",
|
||||
"fontFile":"NotoSansKannada-Regular.ttf"
|
||||
},
|
||||
"31A0-31BF@Bopomofo Extended":{
|
||||
"description":"Tai Le",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"31F0-31FF":{
|
||||
"description":"Katakana Phonetic Extensions",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},"3200-32FF":{
|
||||
"description":"Enclosed CJK Letters and Months",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"3300-33FF":{
|
||||
"description":"CJK Compatibility",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"4DC0-4DFF":{
|
||||
"description":"Yijing Hexagram Symbols",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"4E00-9FFF":{
|
||||
"description":"CJK Unified Ideographs",
|
||||
"fontFile":"SourceHanSans-Regular.ttc"
|
||||
},
|
||||
"FB00-FB4F":{
|
||||
"description":"Alphabetic Presentation Forms",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"FB50-FDFF":{
|
||||
"description":"Arabic Presentation Forms-A",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"FE00-FE0F":{
|
||||
"description":"Variation Selectors",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"FE20-FE2F":{
|
||||
"description":"Combining Half Marks",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"FE30-FE4F":{
|
||||
"description":"CJK Compatibility Forms",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"FE50-FE6F":{
|
||||
"description":"Small Form Variants",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
},
|
||||
"FF00-FFEF":{
|
||||
"description":"Halfwidth and Fullwidth Forms",
|
||||
"fontFile":"NotoSansCJK-Regular.ttc"
|
||||
}
|
||||
}
|
BIN
ios/Framework/Source/20200518.png
Normal file
After Width: | Height: | Size: 484 KiB |
BIN
ios/Framework/Source/20200519.jpg
Normal file
After Width: | Height: | Size: 264 KiB |
BIN
ios/Framework/Source/333.png
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
ios/Framework/Source/4444.png
Normal file
After Width: | Height: | Size: 1.2 KiB |