Skip to content

Commit

Permalink
removed unused functions in android main activity, and updated versio…
Browse files Browse the repository at this point in the history
…n number
  • Loading branch information
deathblade666 committed Sep 29, 2024
1 parent 6961e9e commit 9c8d9ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import io.flutter.plugin.common.MethodChannel

class MainActivity: FlutterActivity() {
private val CHANNEL = "notification_shade"
private val widgetChannel = "widget_channel"
override fun onCreate(savedInstanceState: Bundle?) {
intent.putExtra("background_mode", transparent.toString())
super.onCreate(savedInstanceState)
Expand Down Expand Up @@ -43,22 +42,5 @@ override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
}
}

fun configureFlutterEngineForWidgets(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, widgetChannel).setMethodCallHandler { call, result ->
if (call.method == "addWidget") {
val widgetId = call.argument<String>("widgetId")
addWidgetToHomeScreen(widgetId)
result.success(null)
} else {
result.notImplemented()
}
}
}

private fun addWidgetToHomeScreen(widgetId: String?) {

}

}

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
version: 0.0.3+2

environment:
sdk: ^3.5.1
Expand Down

0 comments on commit 9c8d9ae

Please sign in to comment.