Skip to content

Commit

Permalink
Merge pull request #426 from reidbaker/i425-outreach-v1-embedding
Browse files Browse the repository at this point in the history
Removes references to Flutter v1 android embedding classes
  • Loading branch information
tp authored Jun 13, 2024
2 parents 168941b + 61c3e84 commit 3d5ca18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
4 changes: 4 additions & 0 deletions packages/sign_in_with_apple/sign_in_with_apple/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.1.1

- Removes references to Flutter v1 android embedding classes.

## 6.1.0

- Set min Flutter SDK to 3.19.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.PluginRegistry.ActivityResultListener
import io.flutter.plugin.common.PluginRegistry.Registrar
import io.flutter.Log

val TAG = "SignInWithApple"
Expand All @@ -37,24 +36,9 @@ public class SignInWithApplePlugin: FlutterPlugin, MethodCallHandler, ActivityAw
channel = null
}

// 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
// plugin registration via this function while apps migrate to use the new Android APIs
// post-flutter-1.12 via https://flutter.dev/go/android-project-migration.
//
// It is encouraged to share logic between onAttachedToEngine and registerWith to keep
// them functionally equivalent. Only one of onAttachedToEngine or registerWith will be called
// depending on the user's project. onAttachedToEngine or registerWith must both be defined
// in the same class.
companion object {
var lastAuthorizationRequestResult: Result? = null
var triggerMainActivityToHideChromeCustomTab : (() -> Unit)? = null

@JvmStatic
fun registerWith(registrar: Registrar) {
val channel = MethodChannel(registrar.messenger(), "com.aboutyou.dart_packages.sign_in_with_apple")
channel.setMethodCallHandler(SignInWithApplePlugin())
}
}

override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sign_in_with_apple
description: Flutter bridge to initiate Sign in with Apple (on iOS, macOS, and Android). Includes support for keychain entries as well as signing in with an Apple ID.
version: 6.1.0
version: 6.1.1
homepage: https://github.com/aboutyou/dart_packages/tree/master/packages/sign_in_with_apple
repository: https://github.com/aboutyou/dart_packages

Expand Down

0 comments on commit 3d5ca18

Please sign in to comment.