From 81be9c43ba56a9345ad1731a0f56d2c1a9071ca4 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 25 Jan 2020 13:44:22 +0100 Subject: [PATCH] Bump dependencies They now explicitly depend on androidx. --- .../gitjournal/UriReceiverActivity.java | 35 ------------------- pubspec.lock | 4 +-- pubspec.yaml | 4 +-- 3 files changed, 4 insertions(+), 39 deletions(-) delete mode 100644 android/app/src/main/java/io/gitjournal/gitjournal/UriReceiverActivity.java diff --git a/android/app/src/main/java/io/gitjournal/gitjournal/UriReceiverActivity.java b/android/app/src/main/java/io/gitjournal/gitjournal/UriReceiverActivity.java deleted file mode 100644 index 4cc670ab..00000000 --- a/android/app/src/main/java/io/gitjournal/gitjournal/UriReceiverActivity.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.gitjournal.gitjournal; - -import android.os.Bundle; -import android.util.Log; -import android.app.Activity; -import android.net.*; - -import android.content.Intent; - -import java.util.HashMap; -import java.util.Map; - -public class UriReceiverActivity extends Activity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - Uri data = getIntent().getData(); - - Map map = new HashMap<>(); - map.put("URL", data.toString()); - - MainActivity.channel.invokeMethod("onURL", map); - - // Now that all data has been sent back to Dart-land, we should re-open the Flutter - // activity. Due to the manifest-setting of the MainActivity ("singleTop), only a single - // instance will exist, popping the old one back up and destroying the preceding - // activities on the backstack, such as the custom tab. - // Flags taken from how the AppAuth-library accomplishes the same thing - Intent mainIntent = new Intent(this, MainActivity.class); - mainIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); - startActivity(mainIntent); - finish(); - } - -} diff --git a/pubspec.lock b/pubspec.lock index 9abca880..0773ae7e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -133,7 +133,7 @@ packages: name: fetch_app_logs url: "https://pub.dartlang.org" source: hosted - version: "0.0.2" + version: "0.0.3" file: dependency: transitive description: @@ -206,7 +206,7 @@ packages: name: flutter_runtime_env url: "https://pub.dartlang.org" source: hosted - version: "0.0.1" + version: "0.0.2" flutter_staggered_grid_view: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 66b25bfa..b2af71aa 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,8 +31,8 @@ dependencies: page_transition: "^1.1.5" provider: ^3.2.0 git_bindings: ^0.0.8 - fetch_app_logs: ^0.0.2 - flutter_runtime_env: ^0.0.1 + fetch_app_logs: ^0.0.3 + flutter_runtime_env: ^0.0.2 yaml_serializer: ^0.0.2 connectivity: ^0.4.6+1