From 22ca7f462bbd0684a7ae85b397ebdf1ed30114b8 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Thu, 19 Sep 2019 11:12:58 -0700 Subject: [PATCH] Adds new flutter module, reconfigures Android/iOS sample (#144) --- experimental/add_to_app/README.md | 65 +- .../ExampleInstrumentedTest.kt | 24 - .../drawable-v24/ic_launcher_foreground.xml | 34 - .../res/drawable/ic_launcher_background.xml | 74 -- .../app/src/main/res/layout/activity_main.xml | 20 - .../app/src/main/res/values/strings.xml | 3 - .../add_to_app/SimpleIOSExample/Podfile.lock | 28 - .../project.pbxproj | 737 ----------------- .../.gitignore | 1 + .../app/.gitignore | 0 .../app/build.gradle | 25 +- .../app/proguard-rules.pro | 0 .../ExampleInstrumentedTest.kt | 28 + .../app/src/main/AndroidManifest.xml | 25 +- .../androidfullscreen}/MainActivity.kt | 9 +- .../drawable-v24/ic_launcher_foreground.xml | 34 + .../res/drawable/ic_launcher_background.xml | 170 ++++ .../app/src/main/res/layout/activity_main.xml | 19 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 4 +- .../mipmap-anydpi-v26/ic_launcher_round.xml | 4 +- .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../res/mipmap-hdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../res/mipmap-mdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../res/mipmap-xhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin .../app/src/main/res/values/colors.xml | 0 .../app/src/main/res/values/strings.xml | 3 + .../app/src/main/res/values/styles.xml | 0 .../androidfullscreen}/ExampleUnitTest.kt | 6 +- .../build.gradle | 7 +- .../gradle.properties | 6 + .../gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 4 +- .../gradlew | 0 .../gradlew.bat | 0 .../settings.gradle | 5 +- .../add_to_app/example_module/README.md | 4 - .../example_module/analysis_options.yaml | 30 - .../example_module/test/widget_test.dart | 12 - .../.gitignore | 0 .../.metadata | 4 +- .../add_to_app/flutter_module/README.md | 10 + .../lib/main.dart | 18 +- .../pubspec.lock | 6 +- .../pubspec.yaml | 13 +- .../flutter_module/test/widget_test.dart | 34 + .../flutter_module_using_plugin/.gitignore | 41 + .../flutter_module_using_plugin/.metadata | 10 + .../flutter_module_using_plugin/README.md | 11 + .../flutter_module_using_plugin/lib/main.dart | 134 ++++ .../flutter_module_using_plugin/pubspec.lock | 203 +++++ .../flutter_module_using_plugin/pubspec.yaml | 30 + .../test/widget_test.dart | 34 + .../.gitignore | 0 .../IOSFullScreen.xcodeproj/project.pbxproj | 738 ++++++++++++++++++ .../contents.xcworkspacedata | 2 +- .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../contents.xcworkspacedata | 2 +- .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../IOSFullScreen}/AppDelegate.swift | 12 +- .../AppIcon.appiconset/Contents.json | 0 .../Assets.xcassets/Contents.json | 0 .../Base.lproj/LaunchScreen.storyboard | 0 .../IOSFullScreen}/Base.lproj/Main.storyboard | 14 +- .../IOSFullScreen}/Info.plist | 0 .../IOSFullScreen}/ViewController.swift | 6 +- .../IOSFullScreenTests.swift} | 4 +- .../IOSFullScreenTests}/Info.plist | 0 .../IOSFullScreenUITests.swift} | 2 +- .../IOSFullScreenUITests}/Info.plist | 0 .../Podfile | 13 +- .../add_to_app/ios_fullscreen/Podfile.lock | 28 + 77 files changed, 1674 insertions(+), 1076 deletions(-) delete mode 100644 experimental/add_to_app/SimpleAndroidApp/app/src/androidTest/java/com/example/simpleandroidapp/ExampleInstrumentedTest.kt delete mode 100644 experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable-v24/ic_launcher_foreground.xml delete mode 100644 experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable/ic_launcher_background.xml delete mode 100644 experimental/add_to_app/SimpleAndroidApp/app/src/main/res/layout/activity_main.xml delete mode 100644 experimental/add_to_app/SimpleAndroidApp/app/src/main/res/values/strings.xml delete mode 100644 experimental/add_to_app/SimpleIOSExample/Podfile.lock delete mode 100644 experimental/add_to_app/SimpleIOSExample/SimpleIOSExample.xcodeproj/project.pbxproj rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/.gitignore (97%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/.gitignore (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/build.gradle (61%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/proguard-rules.pro (100%) create mode 100644 experimental/add_to_app/android_fullscreen/app/src/androidTest/java/dev/flutter/example/androidfullscreen/ExampleInstrumentedTest.kt rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/AndroidManifest.xml (62%) rename experimental/add_to_app/{SimpleAndroidApp/app/src/main/java/com/example/simpleandroidapp => android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen}/MainActivity.kt (65%) create mode 100644 experimental/add_to_app/android_fullscreen/app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 experimental/add_to_app/android_fullscreen/app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 experimental/add_to_app/android_fullscreen/app/src/main/res/layout/activity_main.xml rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (94%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml (94%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-hdpi/ic_launcher_round.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-mdpi/ic_launcher_round.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/values/colors.xml (100%) create mode 100644 experimental/add_to_app/android_fullscreen/app/src/main/res/values/strings.xml rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/app/src/main/res/values/styles.xml (100%) rename experimental/add_to_app/{SimpleAndroidApp/app/src/test/java/com/example/simpleandroidapp => android_fullscreen/app/src/test/java/dev/flutter/example/androidfullscreen}/ExampleUnitTest.kt (60%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/build.gradle (65%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/gradle.properties (70%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/gradle/wrapper/gradle-wrapper.jar (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/gradle/wrapper/gradle-wrapper.properties (80%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/gradlew (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/gradlew.bat (100%) rename experimental/add_to_app/{SimpleAndroidApp => android_fullscreen}/settings.gradle (52%) delete mode 100644 experimental/add_to_app/example_module/README.md delete mode 100644 experimental/add_to_app/example_module/analysis_options.yaml delete mode 100644 experimental/add_to_app/example_module/test/widget_test.dart rename experimental/add_to_app/{example_module => flutter_module}/.gitignore (100%) rename experimental/add_to_app/{example_module => flutter_module}/.metadata (76%) create mode 100644 experimental/add_to_app/flutter_module/README.md rename experimental/add_to_app/{example_module => flutter_module}/lib/main.dart (83%) rename experimental/add_to_app/{example_module => flutter_module}/pubspec.lock (98%) rename experimental/add_to_app/{example_module => flutter_module}/pubspec.yaml (71%) create mode 100644 experimental/add_to_app/flutter_module/test/widget_test.dart create mode 100644 experimental/add_to_app/flutter_module_using_plugin/.gitignore create mode 100644 experimental/add_to_app/flutter_module_using_plugin/.metadata create mode 100644 experimental/add_to_app/flutter_module_using_plugin/README.md create mode 100644 experimental/add_to_app/flutter_module_using_plugin/lib/main.dart create mode 100644 experimental/add_to_app/flutter_module_using_plugin/pubspec.lock create mode 100644 experimental/add_to_app/flutter_module_using_plugin/pubspec.yaml create mode 100644 experimental/add_to_app/flutter_module_using_plugin/test/widget_test.dart rename experimental/add_to_app/{SimpleIOSExample => ios_fullscreen}/.gitignore (100%) create mode 100644 experimental/add_to_app/ios_fullscreen/IOSFullScreen.xcodeproj/project.pbxproj rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample.xcodeproj => ios_fullscreen/IOSFullScreen.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (67%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample.xcodeproj => ios_fullscreen/IOSFullScreen.xcodeproj}/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample.xcworkspace => ios_fullscreen/IOSFullScreen.xcworkspace}/contents.xcworkspacedata (77%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample.xcworkspace => ios_fullscreen/IOSFullScreen.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist (100%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample => ios_fullscreen/IOSFullScreen}/AppDelegate.swift (78%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample => ios_fullscreen/IOSFullScreen}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample => ios_fullscreen/IOSFullScreen}/Assets.xcassets/Contents.json (100%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample => ios_fullscreen/IOSFullScreen}/Base.lproj/LaunchScreen.storyboard (100%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample => ios_fullscreen/IOSFullScreen}/Base.lproj/Main.storyboard (76%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample => ios_fullscreen/IOSFullScreen}/Info.plist (100%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExample => ios_fullscreen/IOSFullScreen}/ViewController.swift (87%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExampleTests/SimpleIOSExampleTests.swift => ios_fullscreen/IOSFullScreenTests/IOSFullScreenTests.swift} (91%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExampleTests => ios_fullscreen/IOSFullScreenTests}/Info.plist (100%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExampleUITests/SimpleIOSExampleUITests.swift => ios_fullscreen/IOSFullScreenUITests/IOSFullScreenUITests.swift} (96%) rename experimental/add_to_app/{SimpleIOSExample/SimpleIOSExampleUITests => ios_fullscreen/IOSFullScreenUITests}/Info.plist (100%) rename experimental/add_to_app/{SimpleIOSExample => ios_fullscreen}/Podfile (55%) create mode 100644 experimental/add_to_app/ios_fullscreen/Podfile.lock diff --git a/experimental/add_to_app/README.md b/experimental/add_to_app/README.md index 932750bc1..23ba03747 100644 --- a/experimental/add_to_app/README.md +++ b/experimental/add_to_app/README.md @@ -5,7 +5,7 @@ and the latest version of CocoaPods. See the [README](../README.md) in the `experimental` directory for details.*** This directory contains a bunch of Android and iOS projects that each import -a standalone Flutter module called `example_module`. +a standalone Flutter module called `flutter_module`. ## Goals for this sample @@ -13,42 +13,63 @@ a standalone Flutter module called `example_module`. ## The important bits -### `example_module` +### Flutter modules -This is the Flutter module that'll be added to all the individual projects -in the `add_to_app` folder. +There are two Flutter modules included in the codebase: -The first time you download this repo, you need to first resolve this -module's dependencies by running: +* `flutter_module` displays the dimensions of the screen, a button that + increments a simple counter, and an optional exit button. +* `flutter_module_using_plugin` does everything `flutter_module` does, and adds + another button that will save the counter's value to a file using the + [`path_provider`](https://pub.dev/packages/path_povider) Flutter plugin. + +Before running any of the Android or iOS apps included in this sample project, +you first need to resolve the Flutter modules' depencies. Do so by running this +command from within the `flutter_module` and `flutter_module_using_plugin` +directories: ```bash -cd example_module flutter packages get ``` -### `SimpleAndroidApp` +### Android and iOS applications -An Android application that imports `example_module` and uses it to display -a `FlutterActivity` containing widgets from the module. This project brings -in the Flutter module's Android host wrapper as a gradle sub-module. +In addition to the Flutter modules, this repo also includes a number of +Android and iOS applications that demonstrate different ways of importing +them. -To run, open the SimpleAndroidApp folder in Android Studio and press the run -button. +The Android apps are ready to run once you've completed the +`flutter packages get` commands listed above. The iOS apps use CocoaPods, +so you need to run this command to install the dependencies listed in their +Podfiles prior to running them the first time. -### `SimpleIOSExample` - -An iOS application that imports `example_module` and uses it to display -a `FlutterViewController` containing widgets from the module. This project -uses CocoaPods, so prior to running it for the first time, use this command -to set up the workspace file: +This should be done in the individual project directories themselves. For +example, prior to running `ios_fullscreen` for the first time, you need to run +these commands: ```bash -cd ../SimpleIOSExample +cd ios_fullscreen pod install ``` -Then open SimpleIOSExample/SimpleIOSExample.xcworkspace with Xcode. This -workspace will have the Flutter module linked in as a dependent CocoaPod. +Once that command is complete, you'll find an `xcworkspace` file in the project +directories with the correct Flutter module (and any other dependencies) +included. Open that workspace file, and the app is ready to build and run. + +### `android_fullscreen` and `ios_fullscreen` + +These apps showcase a relatively straightforward integration of +`flutter_module`: + +* The Flutter module is built along with the app when the app is built. +* The Flutter engine is warmed up at app launch. +* The Flutter view is presented with a full-screen Activity or + UIViewController. +* The Flutter view is a navigational leaf node; it does not launch any new, + native Activities or UIViewControllers in response to user actions. + +If you are new to Flutter's add-to-app APIs, these projects are a great place +to begin learning how to use them. ## Questions/issues diff --git a/experimental/add_to_app/SimpleAndroidApp/app/src/androidTest/java/com/example/simpleandroidapp/ExampleInstrumentedTest.kt b/experimental/add_to_app/SimpleAndroidApp/app/src/androidTest/java/com/example/simpleandroidapp/ExampleInstrumentedTest.kt deleted file mode 100644 index bd91b7615..000000000 --- a/experimental/add_to_app/SimpleAndroidApp/app/src/androidTest/java/com/example/simpleandroidapp/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,24 +0,0 @@ -package com.example.simpleandroidapp - -import android.support.test.InstrumentationRegistry -import android.support.test.runner.AndroidJUnit4 - -import org.junit.Test -import org.junit.runner.RunWith - -import org.junit.Assert.* - -/** - * Instrumented test, which will execute on an Android device. - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -@RunWith(AndroidJUnit4::class) -class ExampleInstrumentedTest { - @Test - fun useAppContext() { - // Context of the app under test. - val appContext = InstrumentationRegistry.getTargetContext() - assertEquals("com.example.simpleandroidapp", appContext.packageName) - } -} diff --git a/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable-v24/ic_launcher_foreground.xml deleted file mode 100644 index 6348baae3..000000000 --- a/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - diff --git a/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable/ic_launcher_background.xml b/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index a0ad202f9..000000000 --- a/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/layout/activity_main.xml b/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/layout/activity_main.xml deleted file mode 100644 index a051374aa..000000000 --- a/experimental/add_to_app/SimpleAndroidApp/app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - + + diff --git a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExample/Info.plist b/experimental/add_to_app/ios_fullscreen/IOSFullScreen/Info.plist similarity index 100% rename from experimental/add_to_app/SimpleIOSExample/SimpleIOSExample/Info.plist rename to experimental/add_to_app/ios_fullscreen/IOSFullScreen/Info.plist diff --git a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExample/ViewController.swift b/experimental/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift similarity index 87% rename from experimental/add_to_app/SimpleIOSExample/SimpleIOSExample/ViewController.swift rename to experimental/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift index 363e79e29..76976b3aa 100644 --- a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExample/ViewController.swift +++ b/experimental/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift @@ -6,10 +6,10 @@ import UIKit import Flutter class ViewController: UIViewController { - @IBAction func buttonWasTapped(_ sender: Any) { - let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine; - let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)!; + let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine + let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)! self.present(flutterViewController, animated: false, completion: nil) } } + diff --git a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleTests/SimpleIOSExampleTests.swift b/experimental/add_to_app/ios_fullscreen/IOSFullScreenTests/IOSFullScreenTests.swift similarity index 91% rename from experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleTests/SimpleIOSExampleTests.swift rename to experimental/add_to_app/ios_fullscreen/IOSFullScreenTests/IOSFullScreenTests.swift index f7f3840fc..0eafb491b 100644 --- a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleTests/SimpleIOSExampleTests.swift +++ b/experimental/add_to_app/ios_fullscreen/IOSFullScreenTests/IOSFullScreenTests.swift @@ -3,9 +3,9 @@ // found in the LICENSE file. import XCTest -@testable import SimpleIOSExample +@testable import IOSFullScreen -class SimpleIOSExampleTests: XCTestCase { +class IOSFullScreenTests: XCTestCase { override func setUp() { // Put setup code here. This method is called before the invocation of each test method in the class. diff --git a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleTests/Info.plist b/experimental/add_to_app/ios_fullscreen/IOSFullScreenTests/Info.plist similarity index 100% rename from experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleTests/Info.plist rename to experimental/add_to_app/ios_fullscreen/IOSFullScreenTests/Info.plist diff --git a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleUITests/SimpleIOSExampleUITests.swift b/experimental/add_to_app/ios_fullscreen/IOSFullScreenUITests/IOSFullScreenUITests.swift similarity index 96% rename from experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleUITests/SimpleIOSExampleUITests.swift rename to experimental/add_to_app/ios_fullscreen/IOSFullScreenUITests/IOSFullScreenUITests.swift index 70ba51143..1def48909 100644 --- a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleUITests/SimpleIOSExampleUITests.swift +++ b/experimental/add_to_app/ios_fullscreen/IOSFullScreenUITests/IOSFullScreenUITests.swift @@ -4,7 +4,7 @@ import XCTest -class SimpleIOSExampleUITests: XCTestCase { +class IOSFullScreenUITests: XCTestCase { override func setUp() { // Put setup code here. This method is called before the invocation of each test method in the class. diff --git a/experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleUITests/Info.plist b/experimental/add_to_app/ios_fullscreen/IOSFullScreenUITests/Info.plist similarity index 100% rename from experimental/add_to_app/SimpleIOSExample/SimpleIOSExampleUITests/Info.plist rename to experimental/add_to_app/ios_fullscreen/IOSFullScreenUITests/Info.plist diff --git a/experimental/add_to_app/SimpleIOSExample/Podfile b/experimental/add_to_app/ios_fullscreen/Podfile similarity index 55% rename from experimental/add_to_app/SimpleIOSExample/Podfile rename to experimental/add_to_app/ios_fullscreen/Podfile index 0c2d93e2e..8b44b8c40 100644 --- a/experimental/add_to_app/SimpleIOSExample/Podfile +++ b/experimental/add_to_app/ios_fullscreen/Podfile @@ -1,25 +1,22 @@ # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' -# These three lines add the dependencies for example_module to the workspace -# for the project: -flutter_application_path = '../example_module' -`pushd "#{flutter_application_path}" && flutter create . && popd` +flutter_application_path = '../flutter_module' load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') -target 'SimpleIOSExample' do +target 'IOSFullScreen' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! - # Pods for SimpleIOSExample + # Pods for IOSFullScreen install_all_flutter_pods(flutter_application_path) - target 'SimpleIOSExampleTests' do + target 'IOSFullScreenTests' do inherit! :search_paths # Pods for testing end - target 'SimpleIOSExampleUITests' do + target 'IOSFullScreenUITests' do inherit! :search_paths # Pods for testing end diff --git a/experimental/add_to_app/ios_fullscreen/Podfile.lock b/experimental/add_to_app/ios_fullscreen/Podfile.lock new file mode 100644 index 000000000..3546304a9 --- /dev/null +++ b/experimental/add_to_app/ios_fullscreen/Podfile.lock @@ -0,0 +1,28 @@ +PODS: + - Flutter (1.0.0) + - flutter_module (0.0.1): + - Flutter + - FlutterPluginRegistrant (0.0.1): + - Flutter + +DEPENDENCIES: + - Flutter (from `../flutter_module/.ios/Flutter/engine`) + - flutter_module (from `../flutter_module/.ios/Flutter`) + - FlutterPluginRegistrant (from `../flutter_module/.ios/Flutter/FlutterPluginRegistrant`) + +EXTERNAL SOURCES: + Flutter: + :path: "../flutter_module/.ios/Flutter/engine" + flutter_module: + :path: "../flutter_module/.ios/Flutter" + FlutterPluginRegistrant: + :path: "../flutter_module/.ios/Flutter/FlutterPluginRegistrant" + +SPEC CHECKSUMS: + Flutter: 0e3d915762c693b495b44d77113d4970485de6ec + flutter_module: 37f078337caf8acad3074374a49bf81442fd3e07 + FlutterPluginRegistrant: d59dd07dd90e9c6430996073575a5bd1ea19677e + +PODFILE CHECKSUM: 3a2cacb59163f4a25654a84fcd92b179f682c008 + +COCOAPODS: 1.7.5