Browse Source

修改安卓部分名称

liuyuqi-dellpc 2 years ago
parent
commit
f1953c1d95

+ 1 - 1
android/app/build.gradle

@@ -29,7 +29,7 @@ android {
 
 
     defaultConfig {
     defaultConfig {
         // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
         // 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
         minSdkVersion 16
         targetSdkVersion 30
         targetSdkVersion 30
         versionCode flutterVersionCode.toInteger()
         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"
 <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
     <!-- Flutter needs it to communicate with the running application
          to allow setting breakpoints, to provide hot reload, etc.
          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"
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="me.yoqi.flutter.flutter_green">
+    package="me.yoqi.flutter.green">
    <application
    <application
         android:label="flutter_green"
         android:label="flutter_green"
         android:icon="@mipmap/ic_launcher">
         android:icon="@mipmap/ic_launcher">
         <activity
         <activity
-            android:name=".MainActivity"
+            android:name="me.yoqi.flutter.green.MainActivity"
             android:launchMode="singleTop"
             android:launchMode="singleTop"
             android:theme="@style/LaunchTheme"
             android:theme="@style/LaunchTheme"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
             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;
 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"
 <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
     <!-- Flutter needs it to communicate with the running application
          to allow setting breakpoints, to provide hot reload, etc.
          to allow setting breakpoints, to provide hot reload, etc.
     -->
     -->