Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 302239e

Browse files
committed
refactor package name and added flutter submodule
1 parent 2c2782f commit 302239e

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "flutter"]
2+
path = flutter
3+
url = https://github.com/flutter/flutter.git
4+
branch = stable

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ apply plugin: 'kotlin-android'
3333
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
3434

3535
android {
36-
namespace "bored.codebyk.minttask"
36+
namespace "bored.codebyk.mint_task"
3737
compileSdkVersion flutter.compileSdkVersion
3838
ndkVersion flutter.ndkVersion
3939

@@ -52,7 +52,7 @@ android {
5252

5353
defaultConfig {
5454
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
55-
applicationId "bored.codebyk.minttask"
55+
applicationId "bored.codebyk.mint_task"
5656
// You can update the following values to match your application needs.
5757
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
5858
minSdkVersion 21

android/app/src/main/kotlin/bored/codebyk/minttask/MainActivity.kt renamed to android/app/src/main/kotlin/bored/codebyk/mint_task/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package bored.codebyk.minttask
1+
package bored.codebyk.mint_task
22

33
import androidx.annotation.NonNull
44
import io.flutter.embedding.android.FlutterActivity
@@ -8,7 +8,7 @@ import io.flutter.plugin.common.MethodChannel
88
import android.os.Build
99

1010
class MainActivity: FlutterActivity() {
11-
private val CHANNEL = "bored.codebyk.minttask/androidversion"
11+
private val CHANNEL = "bored.codebyk.mint_task/androidversion"
1212

1313
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
1414
super.configureFlutterEngine(flutterEngine)

flutter

Submodule flutter added at 796c8ef

lib/pages/settings.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ThemePage extends StatefulWidget {
7575

7676
class _ThemePageState extends State<ThemePage> {
7777
static const platform =
78-
MethodChannel('bored.codebyk.minttask/androidversion');
78+
MethodChannel('bored.codebyk.mint_task/androidversion');
7979

8080
int av = 0;
8181
Future<int> androidVersion() async {

0 commit comments

Comments
 (0)