Skip to content

Commit

Permalink
Remove AndroidX references from no-op android implementations (flutte…
Browse files Browse the repository at this point in the history
…r#2411)

Adding an android/ folder as a temporary mitigation for: flutter/flutter#46898
  • Loading branch information
amirh authored and Egor committed Nov 20, 2020
1 parent df3cab4 commit c25b515
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ android {

defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package io.flutter.plugins.url_launcher_macos;

import androidx.annotation.NonNull;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.PluginRegistry.Registrar;

public class UrlLauncherMacosPlugin implements FlutterPlugin {
@Override
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {}
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {}

public static void registerWith(Registrar registrar) {}

@Override
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {}
public void onDetachedFromEngine(FlutterPluginBinding binding) {}
}
4 changes: 4 additions & 0 deletions packages/url_launcher/url_launcher_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.0+2

- Remove androidx references from the no-op android implemenation.

# 0.1.0+1

- Add an android/ folder with no-op implementation to workaround https://github.com/flutter/flutter/issues/46304.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ android {

defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

package io.flutter.url_launcher_web;

import androidx.annotation.NonNull;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.PluginRegistry.Registrar;

/** UrlLauncherWebPlugin */
public class UrlLauncherWebPlugin implements FlutterPlugin {
@Override
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {}
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {}

// This static function is optional and equivalent to onAttachedToEngine. It supports the old
// pre-Flutter-1.12 Android projects. You are encouraged to continue supporting
Expand All @@ -25,5 +24,5 @@ public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBindin
public static void registerWith(Registrar registrar) {}

@Override
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {}
public void onDetachedFromEngine(FlutterPluginBinding binding) {}
}
2 changes: 1 addition & 1 deletion packages/url_launcher/url_launcher_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: url_launcher_web
description: Web platform implementation of url_launcher
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_web
version: 0.1.0+1
version: 0.1.0+2

flutter:
plugin:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ android {

defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
package io.flutter.plugins.video_player_web;

import androidx.annotation.NonNull;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry.Registrar;

/** VideoPlayerWebPlugin */
public class VideoPlayerWebPlugin implements FlutterPlugin {
@Override
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {}
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {}

public static void registerWith(Registrar registrar) {}

@Override
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {}

@Override
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {}
public void onDetachedFromEngine(FlutterPluginBinding binding) {}
}

0 comments on commit c25b515

Please sign in to comment.