-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[pointer_interceptor] Add iOS implementation and platform interface #5233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 56 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
e10c9d8
initial working commit
LouiseHsu 6d3f6ca
fixed compiler error, move testing factory to runner, remove default …
LouiseHsu f16a10b
clean up, remove dependency on ios version
LouiseHsu 09fa93f
remove extraneous files in platform interface
LouiseHsu f04c392
unused exports
LouiseHsu ee38fa7
Merge branch 'main' into pointer-interceptor-ios
LouiseHsu 6c610b9
update versioning + changelog
LouiseHsu 45a02df
Merge branch 'pointer-interceptor-ios' of github.com:LouiseHsu/packag…
LouiseHsu 736b4b1
fix yaml issue
LouiseHsu badba67
fix example
LouiseHsu 8c979d2
fix imports
LouiseHsu 7af12bb
some more clean up, formatting
LouiseHsu 276461c
add publish_to none
LouiseHsu bda6870
remove extra analysis_options
LouiseHsu 29a3cc1
update platform interface pubspec.yaml
LouiseHsu 78aa1e3
add public member comments, renaming
LouiseHsu b9bc419
remove extraneous analysis files
LouiseHsu f968902
remove extra test files
LouiseHsu f9294ab
more linter stuff
LouiseHsu 3854eb9
lower versioning
LouiseHsu ef7f76f
lower versioning for platform interface
LouiseHsu 819d7d4
version lowering
LouiseHsu 6067505
fixing ios plugin overriding default ios behaviour
LouiseHsu 994a8ae
remove old ios implementation
LouiseHsu 68a4d8c
fix tests
LouiseHsu 2bcdde2
update ios test
LouiseHsu fbf0e04
formatting
LouiseHsu 85f0899
Merge branch 'main' into pointer-interceptor-ios
LouiseHsu 6c18fa9
pr comments, update changelog/readme
LouiseHsu e6a8a09
remove empty test dir in example
LouiseHsu a67da96
rename web.dart to pointer_interceptor_web.dart, remove "intercepting…
LouiseHsu f38a019
update podspec
LouiseHsu 800fba2
update READMEs, CHANGELOGs, remove extraneous files, various clean up…
LouiseHsu b73c75c
move pointer_interceptor_ios into part of pointer_interceptor
LouiseHsu b309e31
remove accidental prints
LouiseHsu 4edc671
add publish to none
LouiseHsu 60ec17b
add ios configuration to example package
LouiseHsu 7092edf
fix licensing and podfile
LouiseHsu 196a9dd
add licensing to swift files
LouiseHsu d5bf4c9
podfile
LouiseHsu 75a19a8
refactor web into own package, move integration tests, rewrite exampl…
LouiseHsu b53e4f8
licensing, formatting
LouiseHsu afb90bd
fix integration test
LouiseHsu 7b4d1be
formatting
LouiseHsu fa36d02
fix pbxproj
LouiseHsu d40abd2
fix pbxproj?
LouiseHsu 340bd5c
pbxproj
LouiseHsu a766eb8
fix ios platform tests, add unit tests
LouiseHsu 1e5c612
pbxproj
LouiseHsu d8a7fd2
add placeholder integration tests
LouiseHsu 39c0439
formatting
LouiseHsu 0d099f4
update README
LouiseHsu 99bfefa
Merge branch 'main' into pointer-interceptor-ios
LouiseHsu e8f3445
PR comments
LouiseHsu 836cdb9
Merge branch 'pointer-interceptor-ios' of github.com:LouiseHsu/packag…
LouiseHsu ba3fd60
fix test
LouiseHsu a4df634
some pr comments
LouiseHsu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/pointer_interceptor/pointer_interceptor/CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.10.0 | ||
|
||
* Adds iOS implementation. | ||
|
||
## 0.9.3+7 | ||
|
||
* Updates metadata to point to new source folder | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ | |
/build/ | ||
|
||
# Web related | ||
lib/generated_plugin_registrant.dart | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/pointer_interceptor/pointer_interceptor/example/ios/.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
**/dgph | ||
*.mode1v3 | ||
*.mode2v3 | ||
*.moved-aside | ||
*.pbxuser | ||
*.perspectivev3 | ||
**/*sync/ | ||
.sconsign.dblite | ||
.tags* | ||
**/.vagrant/ | ||
**/DerivedData/ | ||
Icon? | ||
**/Pods/ | ||
**/.symlinks/ | ||
profile | ||
xcuserdata | ||
**/.generated/ | ||
Flutter/App.framework | ||
Flutter/Flutter.framework | ||
Flutter/Flutter.podspec | ||
Flutter/Generated.xcconfig | ||
Flutter/ephemeral/ | ||
Flutter/app.flx | ||
Flutter/app.zip | ||
Flutter/flutter_assets/ | ||
Flutter/flutter_export_environment.sh | ||
ServiceDefinitions.json | ||
Runner/GeneratedPluginRegistrant.* | ||
|
||
# Exceptions to above rules. | ||
!default.mode1v3 | ||
!default.mode2v3 | ||
!default.pbxuser | ||
!default.perspectivev3 |
26 changes: 26 additions & 0 deletions
26
packages/pointer_interceptor/pointer_interceptor/example/ios/Flutter/AppFrameworkInfo.plist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>App</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>io.flutter.flutter.app</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>App</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>MinimumOSVersion</key> | ||
<string>11.0</string> | ||
</dict> | ||
</plist> |
2 changes: 2 additions & 0 deletions
2
packages/pointer_interceptor/pointer_interceptor/example/ios/Flutter/Debug.xcconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "Generated.xcconfig" |
2 changes: 2 additions & 0 deletions
2
packages/pointer_interceptor/pointer_interceptor/example/ios/Flutter/Release.xcconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "Generated.xcconfig" |
41 changes: 41 additions & 0 deletions
41
packages/pointer_interceptor/pointer_interceptor/example/ios/Podfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Uncomment this line to define a global platform for your project | ||
# platform :ios, '11.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! | ||
use_modular_headers! | ||
|
||
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
flutter_additional_ios_build_settings(target) | ||
end | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.