Browse Source

修改安卓部分名称

liuyuqi-dellpc 9 months ago
parent
commit
f1953c1d95

+ 1 - 1
android/app/build.gradle

@@ -29,7 +29,7 @@ android {
 
     defaultConfig {
         // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
-        applicationId "me.yoqi.flutter.flutter_green"
+        applicationId "me.yoqi.flutter.green"
         minSdkVersion 16
         targetSdkVersion 30
         versionCode flutterVersionCode.toInteger()

+ 1 - 1
android/app/src/debug/AndroidManifest.xml

@@ -1,5 +1,5 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="me.yoqi.flutter.flutter_green">
+    package="me.yoqi.flutter.green">
     <!-- Flutter needs it to communicate with the running application
          to allow setting breakpoints, to provide hot reload, etc.
     -->

+ 2 - 2
android/app/src/main/AndroidManifest.xml

@@ -1,10 +1,10 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="me.yoqi.flutter.flutter_green">
+    package="me.yoqi.flutter.green">
    <application
         android:label="flutter_green"
         android:icon="@mipmap/ic_launcher">
         <activity
-            android:name=".MainActivity"
+            android:name="me.yoqi.flutter.green.MainActivity"
             android:launchMode="singleTop"
             android:theme="@style/LaunchTheme"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"

+ 1 - 1
android/app/src/main/java/me/yoqi/flutter/flutter_green/MainActivity.java → android/app/src/main/java/me/yoqi/flutter/green/MainActivity.java

@@ -1,4 +1,4 @@
-package me.yoqi.flutter.flutter_green;
+package me.yoqi.flutter.green;
 
 import io.flutter.embedding.android.FlutterActivity;
 

+ 4 - 0
android/app/src/main/res/values-zh/strings.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="app_name">绿植</string>
+</resources>

+ 5 - 0
android/app/src/main/res/values/strings.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <string name="app_name">green</string>
+</resources>

+ 1 - 1
android/app/src/profile/AndroidManifest.xml

@@ -1,5 +1,5 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="me.yoqi.flutter.flutter_green">
+    package="me.yoqi.flutter.green">
     <!-- Flutter needs it to communicate with the running application
          to allow setting breakpoints, to provide hot reload, etc.
     -->