Skip to content
Permalink
Browse files

πŸŽ‰:Initial commit.

  • Loading branch information...
ReverseScale committed Dec 18, 2018
1 parent dc91c68 commit 50ec8543bcb6d72843d5d00d9cbc8e283ed295ca
Showing with 4,869 additions and 0 deletions.
  1. +71 βˆ’0 mac_app/.gitignore
  2. +10 βˆ’0 mac_app/.metadata
  3. +16 βˆ’0 mac_app/README.md
  4. +61 βˆ’0 mac_app/android/app/build.gradle
  5. +39 βˆ’0 mac_app/android/app/src/main/AndroidManifest.xml
  6. +13 βˆ’0 mac_app/android/app/src/main/java/com/example/macapp/MainActivity.java
  7. +12 βˆ’0 mac_app/android/app/src/main/res/drawable/launch_background.xml
  8. BIN mac_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  9. BIN mac_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  10. BIN mac_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  11. BIN mac_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  12. BIN mac_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  13. +8 βˆ’0 mac_app/android/app/src/main/res/values/styles.xml
  14. +29 βˆ’0 mac_app/android/build.gradle
  15. +1 βˆ’0 mac_app/android/gradle.properties
  16. +6 βˆ’0 mac_app/android/gradle/wrapper/gradle-wrapper.properties
  17. +15 βˆ’0 mac_app/android/settings.gradle
  18. +43 βˆ’0 mac_app/feather/macos/AppDelegate.swift
  19. +60 βˆ’0 mac_app/feather/macos/Assets.xcassets/AppIcon.appiconset/Contents.json
  20. BIN mac_app/feather/macos/Assets.xcassets/AppIcon.appiconset/app-icon_512.png
  21. +135 βˆ’0 mac_app/feather/macos/Base.lproj/MainMenu.xib
  22. +18 βˆ’0 mac_app/feather/macos/FeatherApp-Bridging-Header.h
  23. +489 βˆ’0 mac_app/feather/macos/FeatherApp.xcodeproj/project.pbxproj
  24. +7 βˆ’0 mac_app/feather/macos/FeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  25. BIN mac_app/feather/macos/FeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata.gz
  26. +8 βˆ’0 mac_app/feather/macos/FeatherApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  27. BIN ...atherApp.xcodeproj/project.xcworkspace/xcuserdata/mark.xcuserdatad/UserInterfaceState.xcuserstate
  28. BIN ...erApp.xcodeproj/project.xcworkspace/xcuserdata/mark.xcuserdatad/UserInterfaceState.xcuserstate.gz
  29. BIN ...rApp.xcodeproj/project.xcworkspace/xcuserdata/whatsxie.xcuserdatad/UserInterfaceState.xcuserstate
  30. +91 βˆ’0 mac_app/feather/macos/FeatherApp.xcodeproj/xcshareddata/xcschemes/FeatherApp.xcscheme
  31. +27 βˆ’0 ...her/macos/FeatherApp.xcodeproj/xcuserdata/whatsxie.xcuserdatad/xcschemes/xcschememanagement.plist
  32. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/FlutterEmbedder
  33. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/Headers
  34. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/Modules
  35. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/Resources
  36. BIN mac_app/feather/macos/FlutterEmbedder.framework/Versions/A/FlutterEmbedder
  37. +227 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/Versions/A/Headers/FlutterEmbedder.h
  38. +6 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/Versions/A/Modules/module.modulemap
  39. +28 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/Versions/A/Resources/Info.plist
  40. BIN mac_app/feather/macos/FlutterEmbedder.framework/Versions/A/Resources/icudtl.dat
  41. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedder.framework/Versions/Current
  42. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/FlutterEmbedderColorPanel
  43. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Headers
  44. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Modules
  45. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Resources
  46. BIN mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Versions/A/FlutterEmbedderColorPanel
  47. +26 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Versions/A/Headers/FLEColorPanelPlugin.h
  48. +15 βˆ’0 .../feather/macos/FlutterEmbedderColorPanel.framework/Versions/A/Headers/FlutterEmbedderColorPanel.h
  49. +6 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Versions/A/Modules/module.modulemap
  50. +42 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Versions/A/Resources/Info.plist
  51. +165 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Versions/A/_CodeSignature/CodeResources
  52. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderColorPanel.framework/Versions/Current
  53. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/FlutterEmbedderFileChooser
  54. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Headers
  55. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Modules
  56. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Resources
  57. BIN mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Versions/A/FlutterEmbedderFileChooser
  58. +26 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Versions/A/Headers/FLEFileChooserPlugin.h
  59. +15 βˆ’0 ...eather/macos/FlutterEmbedderFileChooser.framework/Versions/A/Headers/FlutterEmbedderFileChooser.h
  60. +6 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Versions/A/Modules/module.modulemap
  61. +42 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Versions/A/Resources/Info.plist
  62. +165 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Versions/A/_CodeSignature/CodeResources
  63. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderFileChooser.framework/Versions/Current
  64. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/FlutterEmbedderMacFeather
  65. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Headers
  66. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Modules
  67. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Resources
  68. BIN mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/FlutterEmbedderMacFeather
  69. +90 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FLEChannels.h
  70. +181 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FLECodecs.h
  71. +32 βˆ’0 ...p/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FLEOpenGLContextHandling.h
  72. +68 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FLEPlugin.h
  73. +26 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FLEReshapeListener.h
  74. +29 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FLEView.h
  75. +116 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FLEViewController.h
  76. +21 βˆ’0 .../feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Headers/FlutterEmbedderMacFeather.h
  77. +6 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Modules/module.modulemap
  78. +47 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/Resources/Info.plist
  79. +231 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/A/_CodeSignature/CodeResources
  80. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMacFeather.framework/Versions/Current
  81. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/FlutterEmbedderMenubar
  82. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Headers
  83. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Modules
  84. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Resources
  85. BIN mac_app/feather/macos/FlutterEmbedderMenubar.framework/Versions/A/FlutterEmbedderMenubar
  86. +30 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Versions/A/Headers/FLEMenubarPlugin.h
  87. +15 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Versions/A/Headers/FlutterEmbedderMenubar.h
  88. +6 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Versions/A/Modules/module.modulemap
  89. +44 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Versions/A/Resources/Info.plist
  90. +165 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Versions/A/_CodeSignature/CodeResources
  91. +1 βˆ’0 mac_app/feather/macos/FlutterEmbedderMenubar.framework/Versions/Current
  92. +36 βˆ’0 mac_app/feather/macos/Info.plist
  93. +43 βˆ’0 mac_app/feather/macos/MainWindow.swift
  94. +60 βˆ’0 mac_app/feather/macos/Pods/Pods.xcodeproj/xcuserdata/mark.xcuserdatad/xcschemes/AppAuth.xcscheme
  95. +60 βˆ’0 mac_app/feather/macos/Pods/Pods.xcodeproj/xcuserdata/mark.xcuserdatad/xcschemes/GTMAppAuth.xcscheme
  96. +60 βˆ’0 ...eather/macos/Pods/Pods.xcodeproj/xcuserdata/mark.xcuserdatad/xcschemes/GTMSessionFetcher.xcscheme
  97. +73 βˆ’0 ...er/macos/Pods/Pods.xcodeproj/xcuserdata/mark.xcuserdatad/xcschemes/Pods-Example Embedder.xcscheme
  98. +39 βˆ’0 .../feather/macos/Pods/Pods.xcodeproj/xcuserdata/mark.xcuserdatad/xcschemes/xcschememanagement.plist
  99. +16 βˆ’0 mac_app/feather/macos/SignInView.swift
  100. +65 βˆ’0 mac_app/feather/macos/SignInView.xib
  101. +2 βˆ’0 mac_app/feather/macos/en.lproj/InfoPlist.strings
  102. +195 βˆ’0 mac_app/feather/macos/en.lproj/MainMenu.strings
  103. +26 βˆ’0 mac_app/ios/Flutter/AppFrameworkInfo.plist
  104. +1 βˆ’0 mac_app/ios/Flutter/Debug.xcconfig
  105. +1 βˆ’0 mac_app/ios/Flutter/Release.xcconfig
  106. +510 βˆ’0 mac_app/ios/Runner.xcodeproj/project.pbxproj
  107. +7 βˆ’0 mac_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  108. +93 βˆ’0 mac_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  109. +7 βˆ’0 mac_app/ios/Runner.xcworkspace/contents.xcworkspacedata
  110. +8 βˆ’0 mac_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  111. +8 βˆ’0 mac_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  112. +6 βˆ’0 mac_app/ios/Runner/AppDelegate.h
  113. +13 βˆ’0 mac_app/ios/Runner/AppDelegate.m
  114. +122 βˆ’0 mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
  115. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
  116. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
  117. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
  118. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
  119. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
  120. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
  121. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
  122. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
  123. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
  124. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
  125. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
  126. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
  127. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
  128. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
  129. BIN mac_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
  130. +23 βˆ’0 mac_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
  131. BIN mac_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
  132. BIN mac_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
  133. BIN mac_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
  134. +5 βˆ’0 mac_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
  135. +37 βˆ’0 mac_app/ios/Runner/Base.lproj/LaunchScreen.storyboard
  136. +26 βˆ’0 mac_app/ios/Runner/Base.lproj/Main.storyboard
  137. +45 βˆ’0 mac_app/ios/Runner/Info.plist
  138. +9 βˆ’0 mac_app/ios/Runner/main.m
  139. +115 βˆ’0 mac_app/lib/main.dart
  140. +68 βˆ’0 mac_app/pubspec.yaml
  141. +30 βˆ’0 mac_app/test/widget_test.dart
@@ -0,0 +1,71 @@
# Miscellaneous
*.class
*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# Visual Studio Code related
.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.packages
.pub-cache/
.pub/
build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: 5391447fae6209bb21a89e6a5a6583cac1af9b4b
channel: beta

project_type: app
@@ -0,0 +1,16 @@
# mac_app

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)

For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
@@ -0,0 +1,61 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

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.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 27

lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.macapp"
minSdkVersion 16
targetSdkVersion 27
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
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 {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
@@ -0,0 +1,39 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.macapp">

<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>

<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="mac_app"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- This keeps the window background of the activity showing
until Flutter renders its first frame. It can be removed if
there is no splash screen (such as the default splash screen
defined in @style/LaunchTheme). -->
<meta-data
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
@@ -0,0 +1,13 @@
package com.example.macapp;

import android.os.Bundle;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;

public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);
}
}
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>
@@ -0,0 +1,29 @@
buildscript {
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}
@@ -0,0 +1 @@
org.gradle.jvmargs=-Xmx1536M
@@ -0,0 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
@@ -0,0 +1,15 @@
include ':app'

def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}

plugins.each { name, path ->
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
include ":$name"
project(":$name").projectDir = pluginDirectory
}
@@ -0,0 +1,43 @@
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak var window: NSWindow!

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}


func applicationWillFinishLaunching(_ notification: Notification) {
NSLog("applicationWillFinishLaunching");
NSAppleEventManager.shared().setEventHandler(self, andSelector: #selector(AppDelegate.handleEvent(_:withReplyEvent:)), forEventClass: AEEventClass(kInternetEventClass), andEventID: AEEventID(kAEGetURL));
}

// @objc - (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
// {
// NSString *param = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
// }
@objc func handleEvent(_ event: NSAppleEventDescriptor!, withReplyEvent: NSAppleEventDescriptor!) {
let param:String? = event.paramDescriptor(forKeyword: keyDirectObject)?.stringValue;
NSLog("Param: %@", param!);
let win:MainWindow = self.window as! MainWindow;
win.flutterViewController.receivedUriLaunch(param!);
}

}

@@ -0,0 +1,60 @@
{
"images" : [
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "1x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "app-icon_512.png",
"scale" : "2x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "app-icon_512.png",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file not shown.

0 comments on commit 50ec854

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