diff --git a/examples/hello_services/.gitignore b/examples/hello_services/.gitignore
deleted file mode 100644
index 9b3426eff3..0000000000
--- a/examples/hello_services/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-.DS_Store
-.atom/
-.idea
-.packages
-.pub/
-build/
-packages/
-pubspec.lock
diff --git a/examples/hello_services/.idea/modules.xml b/examples/hello_services/.idea/modules.xml
deleted file mode 100644
index 06d5e0a75a..0000000000
--- a/examples/hello_services/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/hello_services/.idea/runConfigurations/hello_services.xml b/examples/hello_services/.idea/runConfigurations/hello_services.xml
deleted file mode 100644
index 4fe7890ac5..0000000000
--- a/examples/hello_services/.idea/runConfigurations/hello_services.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/examples/hello_services/README.md b/examples/hello_services/README.md
deleted file mode 100644
index 3bdd61856f..0000000000
--- a/examples/hello_services/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Example of embedding Flutter using FlutterView
-
-This project demonstrates how to embed Flutter within an iOS or Android
-application. On iOS, the iOS and Flutter components are built with Xcode. On
-Android, the Android and Flutter components are built with Android Studio or
-gradle.
-
-You can read more about
-[accessing platform and third-party services in Flutter](https://flutter.io/platform-services/).
-
-## iOS
-
-### Configure
-
-Create an `ios/Flutter/Generated.xcconfig` file with this entry:
-
- * `FLUTTER_ROOT=[absolute path to the Flutter SDK]`
-
-There are a number of other parameters you can control with this file:
-
- * `FLUTTER_APPLICATION_PATH`: The path to the directory that contains your
- `pubspec.yaml` file relative to your `xcodeproj` file.
- * `FLUTTER_BUILD_MODE`: Whether to build for `debug`, `profile`, or `release`.
- Defaults to `release`.
- * `FLUTTER_TARGET`: The path to your `main.dart` relative to your
- `pubspec.yaml`. Defaults to `lib/main.dart`.
- * `FLUTTER_FRAMEWORK_DIR`: The absolute path to the directory that contains
- `Flutter.framework`. Defaults to the `ios-release` version of
- `Flutter.framework` in the `bin/cache` directory of the Flutter SDK.
-
-### Build
-
-Once you've configured your project, you can open `ios/HelloServices.xcodeproj`
-in Xcode and build the project as usual.
-
-## Android
-
-### Configure
-
-Create an `android/local.properties` file with these entries:
-
- * `sdk.dir=[path to the Android SDK]`
- * `flutter.sdk=[path to the Flutter SDK]`
-
-There are a number of other parameters you can control with this file:
-
- * `flutter.buildMode`: Whether to build for `debug`, `profile`, or `release`.
- Defaults to `release`.
- * `flutter.jar`: The path to `flutter.jar`. Defaults to the
- `android-arm-release` version of `flutter.jar` in the `bin/cache` directory
- of the Flutter SDK.
-
-See `android/app/build.gradle` for project specific settings, including:
-
- * `source`: The path to the directory that contains your `pubspec.yaml` file
- relative to your `build.gradle` file.
- * `target`: The path to your `main.dart` relative to your `pubspec.yaml`.
- Defaults to `lib/main.dart`.
-
-### Build
-
-To build directly with `gradle`, use the following commands:
-
- * `cd android`
- * `gradle wrapper`
- * `./gradlew build`
-
-To build with Android Studio, open the `android` folder in Android Studio and
-build the project as usual.
diff --git a/examples/hello_services/android/.gitignore b/examples/hello_services/android/.gitignore
deleted file mode 100644
index 5c4ef82869..0000000000
--- a/examples/hello_services/android/.gitignore
+++ /dev/null
@@ -1,12 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/workspace.xml
-/.idea/libraries
-.DS_Store
-/build
-/captures
-
-/gradle
-/gradlew
-/gradlew.bat
diff --git a/examples/hello_services/android/app/.gitignore b/examples/hello_services/android/app/.gitignore
deleted file mode 100644
index 796b96d1c4..0000000000
--- a/examples/hello_services/android/app/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
diff --git a/examples/hello_services/android/app/build.gradle b/examples/hello_services/android/app/build.gradle
deleted file mode 100644
index 4e2e46b56c..0000000000
--- a/examples/hello_services/android/app/build.gradle
+++ /dev/null
@@ -1,46 +0,0 @@
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withInputStream { stream ->
- localProperties.load(stream)
- }
-}
-
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
-apply plugin: 'com.android.application'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
-android {
- compileSdkVersion 25
- buildToolsVersion '25.0.2'
-
- lintOptions {
- disable 'InvalidPackage'
- }
-
- defaultConfig {
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
- }
- }
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- androidTestCompile 'com.android.support:support-annotations:25.0.0'
- androidTestCompile 'com.android.support.test:runner:0.5'
- androidTestCompile 'com.android.support.test:rules:0.5'
-}
diff --git a/examples/hello_services/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java b/examples/hello_services/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java
deleted file mode 100644
index 5b66006e9b..0000000000
--- a/examples/hello_services/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java
+++ /dev/null
@@ -1,137 +0,0 @@
-package com.example.flutter;
-
-import android.app.Instrumentation;
-import android.graphics.Bitmap;
-import android.support.test.InstrumentationRegistry;
-import android.support.test.rule.ActivityTestRule;
-import android.support.test.runner.AndroidJUnit4;
-
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import java.util.Arrays;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.atomic.AtomicInteger;
-
-import io.flutter.plugin.common.FlutterMethodChannel;
-import io.flutter.view.FlutterView;
-
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
-@RunWith(AndroidJUnit4.class)
-public class ExampleInstrumentedTest {
- @Rule
- public ActivityTestRule activityRule =
- new ActivityTestRule<>(ExampleActivity.class);
-
- @Test
- public void testFlutterMessage() {
- final Instrumentation instr = InstrumentationRegistry.getInstrumentation();
-
- final int RANDOM_MIN = 1;
- final int RANDOM_MAX = 1000;
-
- final CountDownLatch latch = new CountDownLatch(1);
- final AtomicInteger random = new AtomicInteger();
-
- instr.runOnMainSync(new Runnable() {
- public void run() {
- final FlutterView flutterView = (FlutterView) activityRule.getActivity().findViewById(
- R.id.flutter_view);
- final FlutterMethodChannel randomChannel = new FlutterMethodChannel(flutterView, "random");
- randomChannel.invokeMethod("getRandom", Arrays.asList(RANDOM_MIN, RANDOM_MAX), new FlutterMethodChannel.Response() {
- @Override
- public void success(Object o) {
- random.set(((Number) o).intValue());
- latch.countDown();
- }
-
- @Override
- public void error(String code, String message, Object details) {
-
- }
- });
- }
- });
-
- try {
- assertTrue(latch.await(2, TimeUnit.SECONDS));
- } catch (InterruptedException e) {
- fail(e.getMessage());
- }
- assertTrue(random.get() >= RANDOM_MIN);
- assertTrue(random.get() < RANDOM_MAX);
- }
-
- @Test
- public void testBitmap() {
- final Instrumentation instr = InstrumentationRegistry.getInstrumentation();
- final BitmapPoller poller = new BitmapPoller(5);
- instr.runOnMainSync(new Runnable() {
- public void run() {
- final FlutterView flutterView = (FlutterView) activityRule.getActivity().findViewById(
- R.id.flutter_view);
-
- // Call onPostResume to start the engine's renderer even if the activity
- // is paused in the test environment.
- flutterView.onPostResume();
-
- poller.start(flutterView);
- }
- });
-
- Bitmap bitmap = null;
- try {
- bitmap = poller.waitForBitmap();
- } catch (InterruptedException e) {
- fail(e.getMessage());
- }
-
- assertNotNull(bitmap);
- assertTrue(bitmap.getWidth() > 0);
- assertTrue(bitmap.getHeight() > 0);
-
- // Check that a pixel matches the default Material background color.
- assertTrue(bitmap.getPixel(bitmap.getWidth() - 1, bitmap.getHeight() - 1) == 0xFFFAFAFA);
- }
-
- // Waits on a FlutterView until it is able to produce a bitmap.
- private class BitmapPoller {
- private final int delayMsec = 1000;
- private int triesPending;
- private int waitMsec;
- private FlutterView flutterView;
- private Bitmap bitmap;
- private CountDownLatch latch = new CountDownLatch(1);
- private Runnable checkBitmap = new Runnable() {
- public void run() {
- bitmap = flutterView.getBitmap();
- triesPending--;
- if (bitmap != null || triesPending == 0) {
- latch.countDown();
- } else {
- flutterView.postDelayed(checkBitmap, delayMsec);
- }
- }
- };
-
- BitmapPoller(int tries) {
- triesPending = tries;
- waitMsec = delayMsec * tries + 100;
- }
-
- void start(FlutterView flutterView) {
- this.flutterView = flutterView;
- flutterView.postDelayed(checkBitmap, delayMsec);
- }
-
- Bitmap waitForBitmap() throws InterruptedException {
- latch.await(waitMsec, TimeUnit.MILLISECONDS);
- return bitmap;
- }
- }
-}
diff --git a/examples/hello_services/android/app/src/main/AndroidManifest.xml b/examples/hello_services/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 772377e0e8..0000000000
--- a/examples/hello_services/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java b/examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java
deleted file mode 100644
index e9518aa4b1..0000000000
--- a/examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package com.example.flutter;
-
-import android.app.Activity;
-import android.content.Context;
-import android.content.pm.PackageManager;
-import android.location.Location;
-import android.location.LocationManager;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-import android.widget.TextView;
-
-import io.flutter.plugin.common.FlutterMethodChannel;
-import io.flutter.plugin.common.MethodCall;
-import io.flutter.view.FlutterMain;
-import io.flutter.view.FlutterView;
-
-import java.util.Arrays;
-
-public class ExampleActivity extends Activity {
- private static final String TAG = "ExampleActivity";
-
- private FlutterView flutterView;
- private FlutterMethodChannel randomChannel;
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- FlutterMain.ensureInitializationComplete(getApplicationContext(), null);
- setContentView(R.layout.hello_services_layout);
-
- flutterView = (FlutterView) findViewById(R.id.flutter_view);
- flutterView.runFromBundle(FlutterMain.findAppBundlePath(getApplicationContext()), null);
-
- FlutterMethodChannel locationChannel = new FlutterMethodChannel(flutterView, "location");
- randomChannel = new FlutterMethodChannel(flutterView, "random");
-
- locationChannel.setMethodCallHandler(new FlutterMethodChannel.MethodCallHandler() {
- @Override
- public void onMethodCall(MethodCall methodCall, FlutterMethodChannel.Response response) {
- if (methodCall.method.equals("getLocation")) {
- getLocation((String) methodCall.arguments, response);
- } else {
- response.error("unknown method", "Unknown method: " + methodCall.method, null);
- }
- }
- });
-
- Button getRandom = (Button) findViewById(R.id.get_random);
- getRandom.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) { getRandom(); }
- });
- }
-
- @Override
- protected void onDestroy() {
- if (flutterView != null) {
- flutterView.destroy();
- }
- super.onDestroy();
- }
-
- @Override
- protected void onPause() {
- super.onPause();
- flutterView.onPause();
- }
-
- @Override
- protected void onPostResume() {
- super.onPostResume();
- flutterView.onPostResume();
- }
-
- private void getRandom() {
- randomChannel.invokeMethod("getRandom", Arrays.asList(1, 1000), new FlutterMethodChannel.Response() {
- TextView textView = (TextView) findViewById(R.id.random_value);
-
- @Override
- public void success(Object result) {
- textView.setText(result.toString());
- }
-
- @Override
- public void error(String code, String message, Object details) {
- textView.setText("Error: " + message);
- }
- });
- }
-
- private void getLocation(String provider, FlutterMethodChannel.Response response) {
- String locationProvider;
- if (provider.equals("network")) {
- locationProvider = LocationManager.NETWORK_PROVIDER;
- } else if (provider.equals("gps")) {
- locationProvider = LocationManager.GPS_PROVIDER;
- } else {
- response.error("unknown provider", "Unknown location provider: " + provider, null);
- return;
- }
-
- String permission = "android.permission.ACCESS_FINE_LOCATION";
- if (checkCallingOrSelfPermission(permission) == PackageManager.PERMISSION_GRANTED) {
- LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
- Location location = locationManager.getLastKnownLocation(locationProvider);
- if (location != null) {
- response.success(Arrays.asList(location.getLatitude(), location.getLongitude()));
- } else {
- response.error("location unavailable", "Location is not available", null);
- }
- } else {
- response.error("access error", "Location permissions not granted", null);
- }
- }
-}
diff --git a/examples/hello_services/android/app/src/main/res/layout/hello_services_layout.xml b/examples/hello_services/android/app/src/main/res/layout/hello_services_layout.xml
deleted file mode 100644
index da1a2eccd0..0000000000
--- a/examples/hello_services/android/app/src/main/res/layout/hello_services_layout.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/hello_services/android/app/src/main/res/values/strings.xml b/examples/hello_services/android/app/src/main/res/values/strings.xml
deleted file mode 100644
index 010ee34453..0000000000
--- a/examples/hello_services/android/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- Hello Services
- Flutter Application
- Get Random Number
-
diff --git a/examples/hello_services/android/build.gradle b/examples/hello_services/android/build.gradle
deleted file mode 100644
index d82a1548b9..0000000000
--- a/examples/hello_services/android/build.gradle
+++ /dev/null
@@ -1,23 +0,0 @@
-buildscript {
- repositories {
- jcenter()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:2.2.3'
- }
-}
-
-allprojects {
- repositories {
- jcenter()
- }
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
-
-task wrapper(type: Wrapper) {
- gradleVersion = '2.14.1'
-}
diff --git a/examples/hello_services/android/gradle.properties b/examples/hello_services/android/gradle.properties
deleted file mode 100644
index 8bd86f6805..0000000000
--- a/examples/hello_services/android/gradle.properties
+++ /dev/null
@@ -1 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
diff --git a/examples/hello_services/android/settings.gradle b/examples/hello_services/android/settings.gradle
deleted file mode 100644
index e7b4def49c..0000000000
--- a/examples/hello_services/android/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-include ':app'
diff --git a/examples/hello_services/hello_services.iml b/examples/hello_services/hello_services.iml
deleted file mode 100644
index c4447024fe..0000000000
--- a/examples/hello_services/hello_services.iml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/hello_services/ios/.gitignore b/examples/hello_services/ios/.gitignore
deleted file mode 100644
index 0a0efc3825..0000000000
--- a/examples/hello_services/ios/.gitignore
+++ /dev/null
@@ -1,38 +0,0 @@
-.idea/
-.vagrant/
-.sconsign.dblite
-.svn/
-
-.DS_Store
-*.swp
-*.lock
-profile
-
-DerivedData/
-build/
-
-*.pbxuser
-*.mode1v3
-*.mode2v3
-*.perspectivev3
-
-!default.pbxuser
-!default.mode1v3
-!default.mode2v3
-!default.perspectivev3
-
-xcuserdata
-
-*.moved-aside
-
-*.pyc
-*sync/
-Icon?
-.tags*
-
-/Flutter/app.flx
-/Flutter/app.zip
-/Flutter/App.framework
-/Flutter/Flutter.framework
-/Flutter/Generated.xcconfig
-/ServiceDefinitions.json
diff --git a/examples/hello_services/ios/Flutter/AppFrameworkInfo.plist b/examples/hello_services/ios/Flutter/AppFrameworkInfo.plist
deleted file mode 100644
index 6c2de8086b..0000000000
--- a/examples/hello_services/ios/Flutter/AppFrameworkInfo.plist
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleExecutable
- App
- CFBundleIdentifier
- io.flutter.flutter.app
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- App
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- UIRequiredDeviceCapabilities
-
- arm64
-
- MinimumOSVersion
- 8.0
-
-
diff --git a/examples/hello_services/ios/Flutter/Flutter.xcconfig b/examples/hello_services/ios/Flutter/Flutter.xcconfig
deleted file mode 100644
index 592ceee85b..0000000000
--- a/examples/hello_services/ios/Flutter/Flutter.xcconfig
+++ /dev/null
@@ -1 +0,0 @@
-#include "Generated.xcconfig"
diff --git a/examples/hello_services/ios/Runner.xcodeproj/project.pbxproj b/examples/hello_services/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index 9d6a0a6279..0000000000
--- a/examples/hello_services/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,415 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3B80C39C1E8336B200D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C39B1E8336B200D905FE /* App.framework */; };
- 3B80C39D1E8336B200D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C39B1E8336B200D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- 3B80C39F1E8336C500D905FE /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B80C39E1E8336C500D905FE /* AppFrameworkInfo.plist */; };
- 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
- 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- 9740EEB41CF90195004384FC /* Flutter.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Flutter.xcconfig */; };
- 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; };
- 9740EEBB1CF902C7004384FC /* app.flx in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB71CF902C7004384FC /* app.flx */; };
- 97A38A351CFDEC880099F1B4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 97A38A341CFDEC880099F1B4 /* AppDelegate.m */; };
- 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 3B80C39D1E8336B200D905FE /* App.framework in Embed Frameworks */,
- 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 3B80C39B1E8336B200D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
- 3B80C39E1E8336C500D905FE /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Flutter.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Flutter.xcconfig; path = Flutter/Flutter.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 9740EEB71CF902C7004384FC /* app.flx */ = {isa = PBXFileReference; lastKnownFileType = file; name = app.flx; path = Flutter/app.flx; sourceTree = ""; };
- 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
- 97A38A331CFDEC680099F1B4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
- 97A38A341CFDEC880099F1B4 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3B80C39C1E8336B200D905FE /* App.framework in Frameworks */,
- 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 9740EEB71CF902C7004384FC /* app.flx */,
- 3B80C39B1E8336B200D905FE /* App.framework */,
- 3B80C39E1E8336C500D905FE /* AppFrameworkInfo.plist */,
- 9740EEBA1CF902C7004384FC /* Flutter.framework */,
- 9740EEB21CF90195004384FC /* Flutter.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 97C146F11CF9000F007C117D /* Supporting Files */,
- 97A38A331CFDEC680099F1B4 /* AppDelegate.h */,
- 97A38A341CFDEC880099F1B4 /* AppDelegate.m */,
- );
- path = Runner;
- sourceTree = "";
- };
- 97C146F11CF9000F007C117D /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 97C146F21CF9000F007C117D /* main.m */,
- );
- name = "Supporting Files";
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0830;
- ORGANIZATIONNAME = "The Chromium Authors";
- TargetAttributes = {
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 9740EEBB1CF902C7004384FC /* app.flx in Resources */,
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */,
- 3B80C39F1E8336C500D905FE /* AppFrameworkInfo.plist in Resources */,
- 9740EEB41CF90195004384FC /* Flutter.xcconfig in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97A38A351CFDEC880099F1B4 /* AppDelegate.m in Sources */,
- 97C146F31CF9000F007C117D /* main.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */;
- buildSettings = {
- ARCHS = arm64;
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.HelloServices;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */;
- buildSettings = {
- ARCHS = arm64;
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.HelloServices;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
diff --git a/examples/hello_services/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/hello_services/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 63b30092a5..0000000000
--- a/examples/hello_services/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/examples/hello_services/ios/Runner/AppDelegate.h b/examples/hello_services/ios/Runner/AppDelegate.h
deleted file mode 100644
index 145ec31efd..0000000000
--- a/examples/hello_services/ios/Runner/AppDelegate.h
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import
-#import
-
-@interface AppDelegate : FlutterAppDelegate
-
-@end
diff --git a/examples/hello_services/ios/Runner/AppDelegate.m b/examples/hello_services/ios/Runner/AppDelegate.m
deleted file mode 100644
index 3e8abee3d8..0000000000
--- a/examples/hello_services/ios/Runner/AppDelegate.m
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "AppDelegate.h"
-
-#import
-#import
-
-@implementation AppDelegate {
- CLLocationManager* _locationManager;
-}
-- (BOOL)application:(UIApplication*)application
- didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
- FlutterViewController* controller =
- (FlutterViewController*)self.window.rootViewController;
- FlutterMethodChannel* locationChannel = [FlutterMethodChannel
- methodChannelNamed:@"location"
- binaryMessenger:controller
- codec:[FlutterStandardMethodCodec sharedInstance]];
- [locationChannel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResultReceiver result) {
- if ([@"getLocation" isEqualToString:call.method]) {
- if (_locationManager == nil) {
- _locationManager = [[CLLocationManager alloc] init];
- [_locationManager startMonitoringSignificantLocationChanges];
- }
- CLLocation* location = _locationManager.location;
- result(@[@(location.coordinate.latitude), @(location.coordinate.longitude)], nil);
- } else {
- result(nil, [FlutterError errorWithCode:@"unknown method"
- message:@"Unknown location method called"
- details:nil]);
- }
- }];
- return YES;
-}
-
-@end
diff --git a/examples/hello_services/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/hello_services/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index 1d060ed288..0000000000
--- a/examples/hello_services/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "iphone",
- "size" : "20x20",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "20x20",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "29x29",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "29x29",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "40x40",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "40x40",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "60x60",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "60x60",
- "scale" : "3x"
- },
- {
- "idiom" : "ipad",
- "size" : "20x20",
- "scale" : "1x"
- },
- {
- "idiom" : "ipad",
- "size" : "20x20",
- "scale" : "2x"
- },
- {
- "idiom" : "ipad",
- "size" : "29x29",
- "scale" : "1x"
- },
- {
- "idiom" : "ipad",
- "size" : "29x29",
- "scale" : "2x"
- },
- {
- "idiom" : "ipad",
- "size" : "40x40",
- "scale" : "1x"
- },
- {
- "idiom" : "ipad",
- "size" : "40x40",
- "scale" : "2x"
- },
- {
- "idiom" : "ipad",
- "size" : "76x76",
- "scale" : "1x"
- },
- {
- "idiom" : "ipad",
- "size" : "76x76",
- "scale" : "2x"
- },
- {
- "idiom" : "ipad",
- "size" : "83.5x83.5",
- "scale" : "2x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
\ No newline at end of file
diff --git a/examples/hello_services/ios/Runner/Base.lproj/LaunchScreen.storyboard b/examples/hello_services/ios/Runner/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index 1709aef99d..0000000000
--- a/examples/hello_services/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/hello_services/ios/Runner/Base.lproj/Main.storyboard b/examples/hello_services/ios/Runner/Base.lproj/Main.storyboard
deleted file mode 100644
index 2801f0cba3..0000000000
--- a/examples/hello_services/ios/Runner/Base.lproj/Main.storyboard
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/hello_services/ios/Runner/Info.plist b/examples/hello_services/ios/Runner/Info.plist
deleted file mode 100644
index 4700ace8d0..0000000000
--- a/examples/hello_services/ios/Runner/Info.plist
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- HelloServices
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UIRequiredDeviceCapabilities
-
- armv7
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
-
-
diff --git a/examples/hello_services/ios/Runner/main.m b/examples/hello_services/ios/Runner/main.m
deleted file mode 100644
index a9220f12d8..0000000000
--- a/examples/hello_services/ios/Runner/main.m
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import
-#import
-#import "AppDelegate.h"
-
-int main(int argc, char * argv[]) {
- @autoreleasepool {
- return UIApplicationMain(argc, argv, nil,
- NSStringFromClass([AppDelegate class]));
- }
-}
diff --git a/examples/hello_services/lib/main.dart b/examples/hello_services/lib/main.dart
deleted file mode 100644
index ddec1e96ce..0000000000
--- a/examples/hello_services/lib/main.dart
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:async';
-import 'dart:math';
-
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-
-final Random random = new Random();
-
-final PlatformMethodChannel randomChannel = new PlatformMethodChannel('random');
-
-Future handleGetRandom(MethodCall call) async {
- if (call.method == 'getRandom') {
- final int min = call.arguments[0];
- final int max = call.arguments[1];
- return random.nextInt(max - min) + min;
- }
-}
-
-class HelloServices extends StatefulWidget {
- @override
- _HelloServicesState createState() => new _HelloServicesState();
-}
-
-class _HelloServicesState extends State {
- static PlatformMethodChannel locationChannel = new PlatformMethodChannel('location');
- String _location = 'Press button to get location';
-
- @override
- Widget build(BuildContext context) {
- return new Material(
- child: new Center(
- child: new Column(
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: [
- new Text('Hello from Flutter!'),
- new RaisedButton(
- child: new Text('Get Location'),
- onPressed: _getLocation,
- ),
- new Text(_location),
- ],
- ),
- ),
- );
- }
-
- Future _getLocation() async {
- String location;
- try {
- final List reply = await locationChannel.invokeMethod(
- 'getLocation',
- 'network',
- );
- location = 'Latitude: ${reply[0]}, Longitude: ${reply[1]}';
- } on PlatformException catch(e) {
- location = 'Error: ' + e.message;
- }
- // If the widget was removed from the tree while the message was in flight,
- // we want to discard the reply rather than calling setState to update our
- // non-existent appearance.
- if (!mounted) return;
- setState(() {
- _location = location;
- });
- }
-}
-
-void main() {
- runApp(new HelloServices());
- randomChannel.setMethodCallHandler(handleGetRandom);
-}
diff --git a/examples/hello_services/pubspec.yaml b/examples/hello_services/pubspec.yaml
deleted file mode 100644
index 18fb43db58..0000000000
--- a/examples/hello_services/pubspec.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-name: hello_services
-
-dependencies:
- flutter:
- sdk: flutter
-
-dev_dependencies:
- flutter_test:
- sdk: flutter
-
-flutter:
- uses-material-design: true