Skip to content

Commit 1305d40

Browse files
authored
Migrated version and updated flutter files (builtree#132)
* Updated flutter files * Android migration
1 parent cc58219 commit 1305d40

File tree

19 files changed

+143
-16
lines changed

19 files changed

+143
-16
lines changed

android/.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties

android/app/src/main/AndroidManifest.xml

+14-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
additional functionality it is fine to subclass or reimplement
88
FlutterApplication and put your custom class here. -->
99
<application
10-
android:name="io.flutter.app.FlutterApplication"
1110
android:label="Simulate"
1211
android:icon="@mipmap/ic_launcher">
12+
<meta-data
13+
android:name="flutterEmbedding"
14+
android:value="2" />
1315
<activity
1416
android:name=".MainActivity"
1517
android:launchMode="singleTop"
@@ -21,13 +23,22 @@
2123
until Flutter renders its first frame. It can be removed if
2224
there is no splash screen (such as the default splash screen
2325
defined in @style/LaunchTheme). -->
26+
<!-- Specify that the launch screen should continue being displayed -->
27+
<!-- until Flutter renders its first frame. -->
2428
<meta-data
25-
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
26-
android:value="true" />
29+
android:name="io.flutter.embedding.android.SplashScreenDrawable"
30+
android:resource="@drawable/launch_background" />
31+
32+
<!-- Theme to apply as soon as Flutter begins rendering frames -->
33+
<!-- <meta-data
34+
android:name="io.flutter.embedding.android.NormalTheme"
35+
android:resource="@style/NormalTheme"
36+
/> -->
2737
<intent-filter>
2838
<action android:name="android.intent.action.MAIN"/>
2939
<category android:name="android.intent.category.LAUNCHER"/>
3040
</intent-filter>
3141
</activity>
42+
3243
</application>
3344
</manifest>
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
package com.example.simulate;
22

3-
import android.os.Bundle;
4-
import io.flutter.app.FlutterActivity;
5-
import io.flutter.plugins.GeneratedPluginRegistrant;
3+
import io.flutter.embedding.android.FlutterActivity;
64

75
public class MainActivity extends FlutterActivity {
8-
@Override
9-
protected void onCreate(Bundle savedInstanceState) {
10-
super.onCreate(savedInstanceState);
11-
GeneratedPluginRegistrant.registerWith(this);
12-
}
136
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.example.simulate
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
Loading
Loading
Loading
Loading

android/app/src/main/res/values/styles.xml

+4
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
Flutter draws its first frame -->
66
<item name="android:windowBackground">@drawable/launch_background</item>
77
</style>
8+
<!-- You can name this style whatever you'd like -->
9+
<!-- <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
10+
<item name="android:windowBackground">@drawable/NormalTheme</item> -->
11+
<!-- </style> -->
812
</resources>

android/settings_aar.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ':app'

ios/.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
*.mode1v3
2+
*.mode2v3
3+
*.moved-aside
4+
*.pbxuser
5+
*.perspectivev3
6+
**/*sync/
7+
.sconsign.dblite
8+
.tags*
9+
**/.vagrant/
10+
**/DerivedData/
11+
Icon?
12+
**/Pods/
13+
**/.symlinks/
14+
profile
15+
xcuserdata
16+
**/.generated/
17+
Flutter/App.framework
18+
Flutter/Flutter.framework
19+
Flutter/Flutter.podspec
20+
Flutter/Generated.xcconfig
21+
Flutter/app.flx
22+
Flutter/app.zip
23+
Flutter/flutter_assets/
24+
Flutter/flutter_export_environment.sh
25+
ServiceDefinitions.json
26+
Runner/GeneratedPluginRegistrant.*
27+
28+
# Exceptions to above rules.
29+
!default.mode1v3
30+
!default.mode2v3
31+
!default.pbxuser
32+
!default.perspectivev3
+10-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
#!/bin/sh
22
# This is a generated file; do not edit or check into version control.
3-
export "FLUTTER_ROOT=/home/nucleon/development/flutter"
4-
export "FLUTTER_APPLICATION_PATH=/home/nucleon/codEd/simulate"
5-
export "FLUTTER_TARGET=lib/main.dart"
3+
export "FLUTTER_ROOT=C:\Development\flutter"
4+
export "FLUTTER_APPLICATION_PATH=C:\Users\yashl\Main\Projects\simulate"
5+
export "FLUTTER_TARGET=lib\main.dart"
66
export "FLUTTER_BUILD_DIR=build"
7-
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
8-
export "FLUTTER_FRAMEWORK_DIR=/home/nucleon/development/flutter/bin/cache/artifacts/engine/ios"
7+
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
8+
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
9+
export "FLUTTER_FRAMEWORK_DIR=C:\Development\flutter\bin\cache\artifacts\engine\ios"
910
export "FLUTTER_BUILD_NAME=1.0.0"
1011
export "FLUTTER_BUILD_NUMBER=1"
12+
export "DART_OBFUSCATION=false"
13+
export "TRACK_WIDGET_CREATION=false"
14+
export "TREE_SHAKE_ICONS=false"
15+
export "PACKAGE_CONFIG=.packages"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>PreviewsEnabled</key>
6+
<false/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>PreviewsEnabled</key>
6+
<false/>
7+
</dict>
8+
</plist>

ios/Runner/AppDelegate.swift

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import UIKit
2+
import Flutter
3+
4+
@UIApplicationMain
5+
@objc class AppDelegate: FlutterAppDelegate {
6+
override func application(
7+
_ application: UIApplication,
8+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9+
) -> Bool {
10+
GeneratedPluginRegistrant.register(with: self)
11+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12+
}
13+
}

ios/Runner/Runner-Bridging-Header.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#import "GeneratedPluginRegistrant.h"

lib/generated_plugin_registrant.dart

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
// ignore: unused_import
6+
import 'dart:ui';
7+
8+
import 'package:shared_preferences_web/shared_preferences_web.dart';
9+
import 'package:url_launcher_web/url_launcher_web.dart';
10+
11+
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
12+
13+
// ignore: public_member_api_docs
14+
void registerPlugins(PluginRegistry registry) {
15+
SharedPreferencesPlugin.registerWith(registry.registrarFor(SharedPreferencesPlugin));
16+
UrlLauncherPlugin.registerWith(registry.registrarFor(UrlLauncherPlugin));
17+
registry.registerMessageHandler();
18+
}

0 commit comments

Comments
 (0)