Skip to content
Permalink
Browse files

Test ios build on Travis

  • Loading branch information...
heejongahn committed Aug 17, 2019
1 parent e138cf2 commit 1767f40bc109aab8da00bffbb86770afa07b9958
@@ -61,6 +61,12 @@
**/ios/Flutter/flutter_assets/
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*
**/ios/Flutter/flutter_export_environment.sh
**/ios/*.hmap
**/ios/*.ipa
**/ios/*.dSYM.zip
**/ios/*.dSYM
**/ios/fastlane/report.xml

# Exceptions to above rules.
!**/ios/**/default.mode1v3
@@ -2,11 +2,23 @@ language: generic

# For now, Flutter doesn't provide a canonical way to define variables at build time
# https://github.com/flutter/flutter/issues/26638
before_script:
- git clone https://github.com/flutter/flutter.git -b dev
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH

script:
- bash scripts/populate_secret.sh
- flutter packages get
- flutter test
matrix:
include:
- name: iOS Build
os: osx
language: generic
osx_image: xcode10.2
before_script:
- echo -e "machine github.com\n login $GITHUB_TOKEN" >> ~/.netrc
- git clone https://github.com/flutter/flutter.git -b dev
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- gem install bundler
- gem install cocoapods
- cd ios && bundle install && cd ..
script:
- flutter doctor -v
- bash scripts/populate_secret.sh
- flutter build ios --no-codesign --build-number=$(date "+%Y%m%d%H%M%S")
- cd ios
- bundle exec fastlane beta
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>

This file was deleted.

@@ -1,5 +1,8 @@
# Using a CDN with CocoaPods 1.7.2 or later can save a lot of time on pod installation, but it's experimental rather than the default.
# source 'https://cdn.cocoapods.org/'

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -17,8 +20,10 @@ def parse_KV_file(file, separator='=')
end
pods_ary = []
skip_line_start_symbols = ["#", "/"]
puts "#{file_abs_path} starts\n\n\n"
File.foreach(file_abs_path) { |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
puts "#{line}"
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
@@ -29,6 +34,7 @@ def parse_KV_file(file, separator='=')
puts "Invalid plugin specification: #{line}"
end
}
puts "#{file_abs_path} ends\n\n\n"
return pods_ary
end

@@ -41,7 +47,7 @@ target 'Runner' do
# Flutter Pods
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
if generated_xcode_build_settings.empty?
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first."
end
generated_xcode_build_settings.map { |p|
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
@@ -60,6 +66,9 @@ target 'Runner' do
}
end

# # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
# install! 'cocoapods', :disable_input_output_paths => true

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
@@ -16,7 +16,7 @@ PODS:
- Flutter

DEPENDENCIES:
- Flutter (from `.symlinks/flutter/ios-release`)
- Flutter (from `.symlinks/flutter/ios`)
- package_info (from `.symlinks/plugins/package_info/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
@@ -29,7 +29,7 @@ SPEC REPOS:

EXTERNAL SOURCES:
Flutter:
:path: ".symlinks/flutter/ios-release"
:path: ".symlinks/flutter/ios"
package_info:
:path: ".symlinks/plugins/package_info/ios"
path_provider:
@@ -42,14 +42,14 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/webview_flutter/ios"

SPEC CHECKSUMS:
Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
package_info: 78cabb3c322943c55d39676f4a5bfc748c01d055
path_provider: f96fff6166a8867510d2c25fdcc346327cc4b259
shared_preferences: 1feebfa37bb57264736e16865e7ffae7fc99b523
sqflite: ff1d9da63c06588cc8d1faf7256d741f16989d5a
webview_flutter: 1aa7604e6cdb451a9b7ed2c37d5454c0b440246b

PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09
PODFILE CHECKSUM: 0365a86c40b520844b0734c294f0bd408d3025e2

COCOAPODS: 1.6.1
COCOAPODS: 1.7.5
Binary file not shown.
BIN -15 MB ios/Runner.ipa
Binary file not shown.

0 comments on commit 1767f40

Please sign in to comment.
You can’t perform that action at this time.