Skip to content

Commit c790529

Browse files
committed
Added pubspec changes
1 parent c053ede commit c790529

File tree

1,836 files changed

+199149
-123505
lines changed

Some content is hidden

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

1,836 files changed

+199149
-123505
lines changed

packages/syncfusion_flutter_barcodes/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ The following screenshot illustrates the result of the previous code sample.
134134

135135
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 20,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
136136

137-
Today we provide 1,000+ controls and frameworks for web ([ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls), [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls), [ASP.NET WebForms](https://www.syncfusion.com/jquery/aspnet-web-forms-ui-controls), [JavaScript](https://www.syncfusion.com/javascript-ui-controls), [Angular](https://www.syncfusion.com/angular-ui-components), [React](https://www.syncfusion.com/react-ui-components), [Vue](https://www.syncfusion.com/vue-ui-components), and [Blazor](https://www.syncfusion.com/blazor-components)), mobile ([Xamarin](https://www.syncfusion.com/xamarin-ui-controls), [Flutter](https://www.syncfusion.com/flutter-widgets), [UWP](https://www.syncfusion.com/uwp-ui-controls), and [JavaScript](https://www.syncfusion.com/javascript-ui-controls)), and desktop development ([WinForms](https://www.syncfusion.com/winforms-ui-controls), [WPF](https://www.syncfusion.com/wpf-ui-controls), and [UWP](https://www.syncfusion.com/uwp-ui-controls)). We provide ready-to- deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
137+
Today we provide 1,000+ controls and frameworks for web ([ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls), [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls), [ASP.NET WebForms](https://www.syncfusion.com/jquery/aspnet-web-forms-ui-controls), [JavaScript](https://www.syncfusion.com/javascript-ui-controls), [Angular](https://www.syncfusion.com/angular-ui-components), [React](https://www.syncfusion.com/react-ui-components), [Vue](https://www.syncfusion.com/vue-ui-components), and [Blazor](https://www.syncfusion.com/blazor-components)), mobile ([Xamarin](https://www.syncfusion.com/xamarin-ui-controls), [.NET MAUI](https://www.syncfusion.com/maui-controls), [Flutter](https://www.syncfusion.com/flutter-widgets), [UWP](https://www.syncfusion.com/uwp-ui-controls), and [JavaScript](https://www.syncfusion.com/javascript-ui-controls)), and desktop development ([WinForms](https://www.syncfusion.com/winforms-ui-controls), [WPF](https://www.syncfusion.com/wpf-ui-controls), [UWP](https://www.syncfusion.com/uwp-ui-controls), [.NET MAUI](https://www.syncfusion.com/maui-controls) and [WinUI](https://www.syncfusion.com/winui-controls)). We provide ready-to- deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.

packages/syncfusion_flutter_barcodes/analysis_options.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ analyzer:
66
lines_longer_than_80_chars: ignore
77
avoid_as: false
88
use_raw_strings: ignore
9+
unnecessary_null_checks: ignore
10+
noop_primitive_operations: ignore

packages/syncfusion_flutter_barcodes/example/README.md

-3
This file was deleted.

packages/syncfusion_flutter_barcodes/example/android/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

packages/syncfusion_flutter_barcodes/example/android/app/build.gradle

+12-11
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,28 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 28
29+
compileSdkVersion flutter.compileSdkVersion
3030

31-
sourceSets {
32-
main.java.srcDirs += 'src/main/kotlin'
31+
compileOptions {
32+
sourceCompatibility JavaVersion.VERSION_1_8
33+
targetCompatibility JavaVersion.VERSION_1_8
34+
}
35+
36+
kotlinOptions {
37+
jvmTarget = '1.8'
3338
}
3439

35-
lintOptions {
36-
disable 'InvalidPackage'
40+
sourceSets {
41+
main.java.srcDirs += 'src/main/kotlin'
3742
}
3843

3944
defaultConfig {
4045
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4146
applicationId "com.example.example"
42-
minSdkVersion 16
43-
targetSdkVersion 28
47+
minSdkVersion flutter.minSdkVersion
48+
targetSdkVersion flutter.targetSdkVersion
4449
versionCode flutterVersionCode.toInteger()
4550
versionName flutterVersionName
46-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4751
}
4852

4953
buildTypes {
@@ -61,7 +65,4 @@ flutter {
6165

6266
dependencies {
6367
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64-
testImplementation 'junit:junit:4.12'
65-
androidTestImplementation 'androidx.test:runner:1.1.1'
66-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
6768
}

packages/syncfusion_flutter_barcodes/example/android/app/src/main/AndroidManifest.xml

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.example.example">
3-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
4-
calls FlutterMain.startInitialization(this); in its onCreate method.
5-
In most cases you can leave this as-is, but you if you want to provide
6-
additional functionality it is fine to subclass or reimplement
7-
FlutterApplication and put your custom class here. -->
8-
<application
9-
android:name="io.flutter.app.FlutterApplication"
3+
<application
104
android:label="example"
5+
android:name="${applicationName}"
116
android:icon="@mipmap/ic_launcher">
127
<activity
138
android:name=".MainActivity"
9+
android:exported="true"
1410
android:launchMode="singleTop"
1511
android:theme="@style/LaunchTheme"
1612
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1713
android:hardwareAccelerated="true"
1814
android:windowSoftInputMode="adjustResize">
15+
<!-- Specifies an Android theme to apply to this Activity as soon as
16+
the Android process has started. This theme is visible to the user
17+
while the Flutter UI initializes. After that, this theme continues
18+
to determine the Window background behind the Flutter UI. -->
19+
<meta-data
20+
android:name="io.flutter.embedding.android.NormalTheme"
21+
android:resource="@style/NormalTheme"
22+
/>
1923
<intent-filter>
2024
<action android:name="android.intent.action.MAIN"/>
2125
<category android:name="android.intent.category.LAUNCHER"/>
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
package com.example.example
22

3-
import androidx.annotation.NonNull;
43
import io.flutter.embedding.android.FlutterActivity
5-
import io.flutter.embedding.engine.FlutterEngine
6-
import io.flutter.plugins.GeneratedPluginRegistrant
74

85
class MainActivity: FlutterActivity() {
9-
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
10-
GeneratedPluginRegistrant.registerWith(flutterEngine);
11-
}
126
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
45
<!-- Show a splash screen on the activity. Automatically removed when
56
Flutter draws its first frame -->
67
<item name="android:windowBackground">@drawable/launch_background</item>
78
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
818
</resources>

packages/syncfusion_flutter_barcodes/example/android/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.6.10'
33
repositories {
44
google()
5-
jcenter()
5+
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.5.0'
9+
classpath 'com.android.tools.build:gradle:4.1.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
1313

1414
allprojects {
1515
repositories {
1616
google()
17-
jcenter()
17+
mavenCentral()
1818
}
1919
}
2020

packages/syncfusion_flutter_barcodes/example/android/example_android.iml

-29
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
2-
android.enableR8=true
32
android.useAndroidX=true
43
android.enableJetifier=true

packages/syncfusion_flutter_barcodes/example/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
include ':app'
22

3-
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
3+
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4+
def properties = new Properties()
45

5-
def plugins = new Properties()
6-
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7-
if (pluginsFile.exists()) {
8-
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9-
}
6+
assert localPropertiesFile.exists()
7+
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
108

11-
plugins.each { name, path ->
12-
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13-
include ":$name"
14-
project(":$name").projectDir = pluginDirectory
15-
}
9+
def flutterSdkPath = properties.getProperty("flutter.sdk")
10+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11+
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"

packages/syncfusion_flutter_barcodes/example/example.iml

-18
This file was deleted.

packages/syncfusion_flutter_barcodes/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md

-5
This file was deleted.

packages/syncfusion_flutter_barcodes/example/pubspec.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ dependencies:
2626
# Use with the CupertinoIcons class for iOS style icons.
2727
cupertino_icons: ^1.0.2
2828

29+
dev_dependencies:
30+
flutter_test:
31+
sdk: flutter
32+
33+
2934
# For information on the generic Dart part of this file, see the
3035
# following page: https://dart.dev/tools/pub/pubspec
3136

packages/syncfusion_flutter_barcodes/example/windows/flutter/generated_plugin_registrant.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Generated file. Do not edit.
33
//
44

5+
// clang-format off
6+
57
#include "generated_plugin_registrant.h"
68

79

packages/syncfusion_flutter_barcodes/example/windows/flutter/generated_plugin_registrant.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Generated file. Do not edit.
33
//
44

5+
// clang-format off
6+
57
#ifndef GENERATED_PLUGIN_REGISTRANT_
68
#define GENERATED_PLUGIN_REGISTRANT_
79

packages/syncfusion_flutter_barcodes/lib/barcodes.dart

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
///
66
/// To use, import `package:syncfusion_flutter_barcodes/barcodes.dart`.
77
///
8+
/// {@youtube 560 315 https://www.youtube.com/watch?v=ckAHrT2CR8A}
9+
///
810
/// See also:
911
/// * [Syncfusion Flutter Barcodes product page](https://www.syncfusion.com/flutter-widgets/flutter-barcodes)
1012
/// * [User guide documentation](https://help.syncfusion.com/flutter/barcode/getting-started)

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/base/barcode_generator.dart

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import 'dart:ui';
21
import 'package:flutter/material.dart';
3-
import 'package:flutter/rendering.dart';
42
import 'package:syncfusion_flutter_core/theme.dart';
53
import '../common/barcode_renderer.dart';
64
import '../one_dimensional/codabar_symbology.dart';

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/common/barcode_renderer.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import 'dart:ui';
21
import 'package:flutter/material.dart';
3-
import 'package:flutter/rendering.dart';
42
import '../base/symbology_base.dart';
53
import '../renderers/one_dimensional/symbology_base_renderer.dart';
64

@@ -63,6 +61,7 @@ class SfBarcodeGeneratorRenderObjectWidget extends LeafRenderObjectWidget {
6361
}
6462

6563
@override
64+
// ignore: library_private_types_in_public_api
6665
void updateRenderObject(BuildContext context, _RenderBarcode renderObject) {
6766
renderObject
6867
..value = value!

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/renderers/one_dimensional/codabar_renderer.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'dart:ui';
21
import 'package:flutter/material.dart';
32
import 'package:flutter/rendering.dart';
43
import '../../base/symbology_base.dart';
@@ -43,7 +42,7 @@ class CodabarRenderer extends SymbologyRenderer {
4342
value[i] == 'B' ||
4443
value[i] == 'C' ||
4544
value[i] == 'D') {
46-
throw 'The provided input cannot be encoded : ' + value[i];
45+
throw 'The provided input cannot be encoded : ${value[i]}';
4746
}
4847
}
4948
return true;
@@ -118,7 +117,7 @@ class CodabarRenderer extends SymbologyRenderer {
118117

119118
/// Method to append the start and the stop symbol
120119
String _getValueWithStartAndStopSymbol(String value) {
121-
return 'A' + value + 'A';
120+
return 'A${value}A';
122121
}
123122

124123
/// Returns the encoded value of the provided input value

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/renderers/one_dimensional/code128_renderer.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'dart:ui';
21
import 'package:flutter/material.dart';
32
import 'package:flutter/rendering.dart';
43
import '../../base/symbology_base.dart';
@@ -20,6 +19,7 @@ class Code128Renderer extends SymbologyRenderer {
2019
code128ACharacterSets.add('\$');
2120
code128ACharacterSets.add('%');
2221
code128ACharacterSets.add('&');
22+
// ignore: avoid_escaping_inner_quotes
2323
code128ACharacterSets.add('\'');
2424
code128ACharacterSets.add('(');
2525
code128ACharacterSets.add(')');
@@ -129,6 +129,7 @@ class Code128Renderer extends SymbologyRenderer {
129129
code128BCharacterSets.add('\$');
130130
code128BCharacterSets.add('%');
131131
code128BCharacterSets.add('&');
132+
// ignore: avoid_escaping_inner_quotes
132133
code128BCharacterSets.add('\'');
133134
code128BCharacterSets.add('(');
134135
code128BCharacterSets.add(')');
@@ -436,7 +437,7 @@ class Code128Renderer extends SymbologyRenderer {
436437
} else if (currentCharacter < 127) {
437438
return true;
438439
} else {
439-
throw 'The provided input cannot be encoded : ' + value[i];
440+
throw 'The provided input cannot be encoded : ${value[i]}';
440441
}
441442
}
442443
return false;

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/renderers/one_dimensional/code128a_renderer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Code128ARenderer extends Code128Renderer {
1010
bool getIsValidateInput(String value) {
1111
for (int i = 0; i < value.length; i++) {
1212
if (!code128ACharacterSets.contains(value[i])) {
13-
throw 'The provided input cannot be encoded : ' + value[i];
13+
throw 'The provided input cannot be encoded : ${value[i]}';
1414
}
1515
}
1616
return true;

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/renderers/one_dimensional/code128b_renderer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Code128BRenderer extends Code128Renderer {
1010
bool getIsValidateInput(String value) {
1111
for (int i = 0; i < value.length; i++) {
1212
if (!code128BCharacterSets.contains(value[i])) {
13-
throw 'The provided input cannot be encoded : ' + value[i];
13+
throw 'The provided input cannot be encoded : ${value[i]}';
1414
}
1515
}
1616
return true;

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/renderers/one_dimensional/code128c_renderer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Code128CRenderer extends Code128Renderer {
1010
bool getIsValidateInput(String value) {
1111
for (int i = 0; i < value.length; i++) {
1212
if (!code128CCharacterSets.contains(value[i])) {
13-
throw 'The provided input cannot be encoded : ' + value[i];
13+
throw 'The provided input cannot be encoded : ${value[i]}';
1414
}
1515
}
1616
return true;

0 commit comments

Comments
 (0)