Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ app: app-apk app-linux
rm -f $(DART_DEFINES)

GH_REMOTE ?= gh
DEB_VERSION := $(shell head -1 debian/changelog.in | grep -oP '\(\K[^)]+' | sed 's/VENDOR_VERSION//')
DEB_VERSION := $(shell head -1 debian/changelog.in | sed -n 's/.*(\([^)]*\)).*/\1/p' | sed 's/VENDOR_VERSION//')
DEB_UPSTREAM := $(firstword $(subst -, ,$(DEB_VERSION)))
RELEASE_TAG = v$(DEB_UPSTREAM)
RELEASE_DEBS = $(wildcard ../release/all/paperman_$(DEB_VERSION)_*.deb)
Expand Down Expand Up @@ -100,7 +100,7 @@ setup:
scripts/setup.sh

.PHONY: app app-demo app-test dart-defines app-apk app-aab app-publish
.PHONY: app-upload app-scp app-scp-only app-scp-watch app-linux app-clean
.PHONY: app-upload app-scp app-scp-only app-scp-watch app-ios app-ios-install app-linux app-clean
dart-defines:
@echo '{"BUILD_DATE":"$(BUILD_DATE)"}' > $(DART_DEFINES)

Expand Down Expand Up @@ -135,6 +135,17 @@ app-scp-watch:
scp $(APP_APK) $(APP_SERVER); \
done

app-ios: dart-defines
cd app && flutter build ios $(FLUTTER_ARGS)

app-ios-install: app-ios
xcrun devicectl device install app --device $(IOS_DEVICE) $(APP_IOS)

# Set IOS_DEVICE to your iPad/iPhone device ID (from Xcode or
# `xcrun devicectl list devices`).
IOS_DEVICE ?= 00008122-0001786226E8401C
APP_IOS = app/build/ios/iphoneos/Runner.app

app-linux: dart-defines
# Clear CMake cache so find_library() re-discovers libpdfium.so from
# the printing plugin's download rather than a stale bundle/lib/ path.
Expand Down
1 change: 1 addition & 0 deletions app/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions app/ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
43 changes: 43 additions & 0 deletions app/ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
inherit! :search_paths
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
55 changes: 55 additions & 0 deletions app/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
PODS:
- Flutter (1.0.0)
- package_info_plus (0.4.5):
- Flutter
- pdfrx (0.0.6):
- Flutter
- FlutterMacOS
- printing (1.0.0):
- Flutter
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- sqflite_darwin (0.0.4):
- Flutter
- FlutterMacOS
- url_launcher_ios (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- pdfrx (from `.symlinks/plugins/pdfrx/darwin`)
- printing (from `.symlinks/plugins/printing/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
pdfrx:
:path: ".symlinks/plugins/pdfrx/darwin"
printing:
:path: ".symlinks/plugins/printing/ios"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite_darwin:
:path: ".symlinks/plugins/sqflite_darwin/darwin"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
pdfrx: 310e84d01e06fd2af26e16507a0e48c27e99195c
printing: 54ff03f28fe9ba3aa93358afb80a8595a071dd07
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b

PODFILE CHECKSUM: 3c63482e143d1b91d2d2560aee9fb04ecc74ac7e

COCOAPODS: 1.16.2
Loading