Cleanup and updates (#126)

* updated gradle wrapper

* get packages

* fix dependabot issues

* Migrate to using io.flutter.embedding.android.FlutterActivity

* delete files
This commit is contained in:
Nishant Srivastava
2022-10-22 21:24:21 +02:00
committed by GitHub
parent 0df530c26a
commit f761e553e4
387 changed files with 8427 additions and 7480 deletions

View File

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"firebase_core","path":"/home/zion/Documents/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+9/","dependencies":[]},{"name":"firebase_database","path":"/home/zion/Documents/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-3.1.0/","dependencies":["firebase_core"]}],"android":[{"name":"firebase_core","path":"/home/zion/Documents/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+9/","dependencies":[]},{"name":"firebase_database","path":"/home/zion/Documents/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-3.1.0/","dependencies":["firebase_core"]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"firebase_core","dependencies":[]},{"name":"firebase_database","dependencies":["firebase_core"]}],"date_created":"2021-07-25 20:35:56.953029","version":"2.0.4"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"firebase_core","path":"/usr/local/Caskroom/flutter/2.8.1/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.5/","native_build":true,"dependencies":[]},{"name":"firebase_database","path":"/usr/local/Caskroom/flutter/2.8.1/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-3.1.6/","native_build":true,"dependencies":["firebase_core"]}],"android":[{"name":"firebase_core","path":"/usr/local/Caskroom/flutter/2.8.1/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.5/","native_build":true,"dependencies":[]},{"name":"firebase_database","path":"/usr/local/Caskroom/flutter/2.8.1/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-3.1.6/","native_build":true,"dependencies":["firebase_core"]}],"macos":[{"name":"firebase_core","path":"/usr/local/Caskroom/flutter/2.8.1/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.5/","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"firebase_core_web","path":"/usr/local/Caskroom/flutter/2.8.1/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/","dependencies":[]}]},"dependencyGraph":[{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_database","dependencies":["firebase_core"]}],"date_created":"2022-10-22 21:15:07.075628","version":"3.3.5"}

View File

@ -7,11 +7,11 @@
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:name="${applicationName}"
android:label="using_firebase_db"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:name="io.flutter.embedding.android.FlutterActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
@ -21,9 +21,7 @@
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"/>

View File

@ -1,13 +0,0 @@
package github.nisrulz.using_firebase_db;
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);
}
}

View File

@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"

View File

@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"

View File

@ -0,0 +1,38 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end