Skip to content

Commit 11d6211

Browse files
anayze work
1 parent f20fdb9 commit 11d6211

File tree

6 files changed

+48
-10
lines changed

6 files changed

+48
-10
lines changed

ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"

ios/Flutter/Release.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

ios/Podfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
project 'Runner', {
8+
'Debug' => :debug,
9+
'Profile' => :release,
10+
'Release' => :release,
11+
}
12+
13+
def flutter_root
14+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15+
unless File.exist?(generated_xcode_build_settings_path)
16+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17+
end
18+
19+
File.foreach(generated_xcode_build_settings_path) do |line|
20+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
21+
return matches[1].strip if matches
22+
end
23+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24+
end
25+
26+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27+
28+
flutter_ios_podfile_setup
29+
30+
target 'Runner' do
31+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
32+
end
33+
34+
post_install do |installer|
35+
installer.pods_project.targets.each do |target|
36+
flutter_additional_ios_build_settings(target)
37+
end
38+
end

lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart';
2-
import 'package:mvc_practice/views/screens/movie_details.dart';
32
import 'views/screens/home.dart';
43

54
void main() {

lib/views/screens/movie_details.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:flutter/cupertino.dart';
21
import 'package:flutter/material.dart';
32
import 'package:mvc_practice/controllers/movie_api.dart';
43
import 'package:mvc_practice/models/movie.dart';

pubspec.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.6.1"
10+
version: "2.8.2"
1111
bloc:
1212
dependency: transitive
1313
description:
@@ -28,14 +28,14 @@ packages:
2828
name: characters
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.1.0"
31+
version: "1.2.0"
3232
charcode:
3333
dependency: transitive
3434
description:
3535
name: charcode
3636
url: "https://pub.dartlang.org"
3737
source: hosted
38-
version: "1.2.0"
38+
version: "1.3.1"
3939
clock:
4040
dependency: transitive
4141
description:
@@ -134,14 +134,14 @@ packages:
134134
name: matcher
135135
url: "https://pub.dartlang.org"
136136
source: hosted
137-
version: "0.12.10"
137+
version: "0.12.11"
138138
meta:
139139
dependency: transitive
140140
description:
141141
name: meta
142142
url: "https://pub.dartlang.org"
143143
source: hosted
144-
version: "1.3.0"
144+
version: "1.7.0"
145145
nested:
146146
dependency: transitive
147147
description:
@@ -307,7 +307,7 @@ packages:
307307
name: test_api
308308
url: "https://pub.dartlang.org"
309309
source: hosted
310-
version: "0.3.0"
310+
version: "0.4.3"
311311
typed_data:
312312
dependency: transitive
313313
description:
@@ -321,7 +321,7 @@ packages:
321321
name: vector_math
322322
url: "https://pub.dartlang.org"
323323
source: hosted
324-
version: "2.1.0"
324+
version: "2.1.1"
325325
win32:
326326
dependency: transitive
327327
description:
@@ -337,5 +337,5 @@ packages:
337337
source: hosted
338338
version: "0.2.0"
339339
sdks:
340-
dart: ">=2.13.0 <3.0.0"
340+
dart: ">=2.14.0 <3.0.0"
341341
flutter: ">=2.0.0"

0 commit comments

Comments
 (0)