Skip to content

Commit 2582920

Browse files
Merge pull request #318 from Yuvaraj-Gajaraj/master
Update samples for new features.
2 parents 7fc5513 + 16af745 commit 2582920

File tree

512 files changed

+38263
-15338
lines changed

Some content is hidden

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

512 files changed

+38263
-15338
lines changed

analysis_options.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
include: lib/analysis_options.yaml
1+
include: package:syncfusion_flutter_core/analysis_options.yaml
2+
3+
analyzer:
4+
errors:
5+
include_file_not_found: ignore
6+
lines_longer_than_80_chars: ignore
7+
invalid_dependency: ignore
8+
avoid_as: ignore
9+
unnecessary_null_comparison: false

assets/maps_brazil_boundary.json

+3

assets/maps_france_boundary.json

+3

assets/maps_uk_boundary.json

+3

assets/pdf/certificate.pfx

2.52 KB
Binary file not shown.
55.6 KB
Binary file not shown.

assets/pdf/form_template.pdf

60.5 KB
Binary file not shown.

images/Cavaliers.png

13.9 KB

images/apple.png

25.7 KB

images/bmi_dark.png

38.2 KB

images/bmi_light.png

38.9 KB

images/cloud.png

846 Bytes

images/cloudy.png

1.44 KB

images/code.png

-1.48 KB
Binary file not shown.

images/flutter_examples.png

-107 KB
Binary file not shown.

images/git_hub.png

1.6 KB

images/git_hub_dark.png

1.59 KB

images/git_hub_mobile.png

1.8 KB

images/linear_gauge.png

190 KB

images/maps_UK.png

3.5 KB

images/maps_brazil.png

8.61 KB

images/maps_default_polygon_dark.png

424 Bytes

images/maps_default_polygon_light.png

390 Bytes

images/maps_france.png

2.21 KB

images/maps_inverted_polygon_dark.png

466 Bytes
430 Bytes

images/orange.png

17.4 KB

images/other_fruits.png

12.1 KB

images/partly_cloudy.png

563 Bytes

images/pdf/signature.png

15.6 KB

images/pears.png

8.77 KB

images/person_walking.gif

17.3 KB

images/person_walking.png

2.4 KB

images/pub_logo.png

1.01 KB

images/rain_cloudy.png

699 Bytes

images/rain_light.png

1.61 KB

images/rainy.png

1.08 KB

images/rectangle_pointer.png

419 Bytes

images/scroll_arrow.png

620 Bytes

images/sunny_image.png

1.13 KB

images/temperature_indicator_dark.png

710 Bytes
958 Bytes

images/thunderstorms.png

717 Bytes

images/treemap.png

5.16 KB

images/treemap_medal.png

2.28 KB

images/triangle_pointer.png

445 Bytes

images/vertical_range_slider.png

1.42 KB

images/vertical_slider.png

2.05 KB

ios/Podfile

+18-50
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Uncomment this line to define a global platform for your project
22
# platform :ios, '9.0'
33

4+
use_frameworks!
5+
use_modular_headers!
6+
47
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
58
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
69

@@ -10,64 +13,29 @@ project 'Runner', {
1013
'Release' => :release,
1114
}
1215

13-
def parse_KV_file(file, separator='=')
14-
file_abs_path = File.expand_path(file)
15-
if !File.exists? file_abs_path
16-
return [];
16+
def flutter_root
17+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
18+
unless File.exist?(generated_xcode_build_settings_path)
19+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
20+
end
21+
22+
File.foreach(generated_xcode_build_settings_path) do |line|
23+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
24+
return matches[1].strip if matches
1725
end
18-
pods_ary = []
19-
skip_line_start_symbols = ["#", "/"]
20-
File.foreach(file_abs_path) { |line|
21-
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22-
plugin = line.split(pattern=separator)
23-
if plugin.length == 2
24-
podname = plugin[0].strip()
25-
path = plugin[1].strip()
26-
podpath = File.expand_path("#{path}", file_abs_path)
27-
pods_ary.push({:name => podname, :path => podpath});
28-
else
29-
puts "Invalid plugin specification: #{line}"
30-
end
31-
}
32-
return pods_ary
26+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
3327
end
3428

35-
target 'Runner' do
36-
use_frameworks!
37-
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
38-
# referring to absolute paths on developers' machines.
39-
system('rm -rf .symlinks')
40-
system('mkdir -p .symlinks/plugins')
29+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
4130

42-
# Flutter Pods
43-
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
44-
if generated_xcode_build_settings.empty?
45-
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first."
46-
end
47-
generated_xcode_build_settings.map { |p|
48-
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
49-
symlink = File.join('.symlinks', 'flutter')
50-
File.symlink(File.dirname(p[:path]), symlink)
51-
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
52-
end
53-
}
31+
flutter_ios_podfile_setup
5432

55-
# Plugin Pods
56-
plugin_pods = parse_KV_file('../.flutter-plugins')
57-
plugin_pods.map { |p|
58-
symlink = File.join('.symlinks', 'plugins', p[:name])
59-
File.symlink(p[:path], symlink)
60-
pod p[:name], :path => File.join(symlink, 'ios')
61-
}
33+
target 'Runner' do
34+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
6235
end
6336

64-
# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
65-
install! 'cocoapods', :disable_input_output_paths => true
66-
6737
post_install do |installer|
6838
installer.pods_project.targets.each do |target|
69-
target.build_configurations.each do |config|
70-
config.build_settings['ENABLE_BITCODE'] = 'NO'
71-
end
39+
flutter_additional_ios_build_settings(target)
7240
end
7341
end

lib/analysis_options.yaml

-6
This file was deleted.

lib/main.dart

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart';
2-
// import 'package:syncfusion_flutter_core/core.dart';
32
import 'model/model.dart';
43
import 'sample_browser.dart';
54

0 commit comments

Comments
 (0)