project.miniapp.json Configuration File

View Markdown

Last edited on 2026-09-20

After upgrading the Mini Program project to a multi-platform project, developers can navigate to project.miniapp.json to further configure the multi-platform application (this file is exclusive to multi-platform projects), specifically including:


{
  "miniVersion": "v2",
  "name": "Mai Duo Duo",
  "version": "0.0.1",
  "versionCode": 100,
  "i18nFilePath": "i18n",
  "mini-ohos": {
    "sdkVersion": "0.5.4",
    "enableDebug": true,
    "icons": {
      "foreground": "/Users/melodytu/Desktop/aaa.png",
      "background": "/Users/melodytu/Desktop/aaa.png"
    },
    "splashscreen": {
      "startWindowIcon": "/Users/melodytu/Desktop/aaa.png",
      "startWindowBackground": "#ffffff"
    },
    "privateDescriptions": {
      "APPROXIMATELY_LOCATION": "aaa",
      "LOCATION": "bbbb",
      "ACCESS_BLUETOOTH": "cccc",
      "CAMERA": "dddd"
    }
  },
  "mini-android": {
    "resourcePath": "miniapp/android/nativeResources",
    "sdkVersion": "1.5.2",
    "toolkitVersion": "0.11.0",
    "useExtendedSdk": {
      "media": false,
      "bluetooth": false,
      "network": false,
      "scanner": false,
      "xweb": false,
      "open": false,
      "nfc": false
    },
    "icons": {
      "hdpi": "",
      "xhdpi": "",
      "xxhdpi": "",
      "xxxhdpi": ""
    },
    "splashscreen": {
      "hdpi": "",
      "xhdpi": "",
      "xxhdpi": ""
    },
    "enableVConsole": "open",
    "privacy": {
      "enable": true,
      "template": "111",
      "contentViewImage": "222",
      "cancelButtonImage": "333",
      "confirmButtonImage": "444",
      "enableViewOnly": true
    },
    "usePluginSdk": {
      "map": "1.2.5"
    },
    "privateDescriptions": {
      "ACCESS_COARSE_LOCATION": "aa",
      "ACCESS_FINE_LOCATION": "bb",
      "CAMERA": "cc",
      "POST_NOTIFICATIONS": "dd",
      "READ_CONTACTS": "ee",
      "READ_PHONE_STATE": "ff",
      "RECORD_AUDIO": "gg",
      "READ_EXTERNAL_STORAGE": "hh",
      "WRITE_EXTERNAL_STORAGE": "ii",
      "READ_MEDIA_IMAGES": "jj",
      "READ_MEDIA_VIDEO": "kk",
      "READ_MEDIA_AUDIO": "ll",
      "READ_MEDIA_VISUAL_USER_SELECTED": "mm"
    }
  },
  "mini-ios": {
    "sdkVersion": "1.6.8",
    "toolkitVersion": "0.0.9",
    "useExtendedSdk": {
      "WeAppOpenFuns": true,
      "WeAppNetwork": false,
      "WeAppBluetooth": false,
      "WeAppMedia": false,
      "WeAppLBS": false,
      "WeAppOthers": false,
      "WeAppLive": true
    },
    "enableVConsole": "close",
    "icons": {
      "mainIcon120": "",
      "mainIcon180": "",
      "spotlightIcon80": "",
      "spotlightIcon120": "",
      "settingsIcon58": "",
      "settingsIcon87": "",
      "notificationIcon40": "",
      "notificationIcon60": "",
      "appStore1024": ""
    },
    "splashScreen": {
      "customImage": ""
    },
    "privacy": {
      "enable": true,
      "template": "11",
      "contentViewImage": "22",
      "cancelButtonImage": "33",
      "confirmButtonImage": "44",
      "enableViewOnly": true
    },
    "enableOpenUrlNavigate": true,
    "privateDescriptions": {
      "NSPhotoLibraryUsageDescription": "11",
      "NSCameraUsageDescription": "22",
      "NSMicrophoneUsageDescription": "33",
      "NSLocationWhenInUseUsageDescription": "44",

"NSLocationAlwaysUsageDescription": "55",
      "NSLocationAlwaysAndWhenInUseUsageDescription": "66",
      "NSContactsUsageDescription": "77",
      "NSCalendarsUsageDescription": "88",
      "NSRemindersUsageDescription": "99",
      "NSBluetoothPeripheralUsageDescription": "10",
      "NSBluetoothAlwaysUsageDescription": "11",
      "NSSpeechRecognitionUsageDescription": "12",
      "NSLocalNetworkUsageDescription": "13",
      "NSSystemAdministrationUsageDescription": "14",
      "NSPhotoLibraryAddUsageDescription": "15"
    },
    "officialPlugins": {
      "imPush": {
        "enable": false
      }
    },
    "buildCloud": {
      "useRemote": false
    },
    "liveInfo": {
      "weAppLiveLicenseUrl": "aaa"
    }
  }
}

To facilitate visual operations for developers, you can click the icon in the top-right corner to switch from Source Code Mode to Visual UI Mode.

Additional Notes: If you encounter any issues, please provide feedback via the Community, or contact the Assistant to join the official technical exchange group for support.

I. Multi-Platform Application Configuration

Developers can configure the basic information of the multi-platform application in project.miniapp.json.

  1. "App Name · name" refers to the "App Name" displayed on the mobile home screen after the application is installed on the phone.
  • When upgrading the multi-platform project, the Developer Tools retrieve by default the name entered when creating the multi-platform application in the Multi-Platform Application Console as the "App Name". If modified here, the modification here will take precedence.
  1. The format for "App Version Name · version" is a three-part numeric version, for example, 1.1.0. (It can be retrieved via the wx.getAppBaseInfo interface)

  2. "App Version Code · versionCode" must be an integer and must be higher than the previously set value during version upgrades. (It can be retrieved via the wx.getAppBaseInfo interface)

  3. "Multi-language Adaptation" is used to configure the folder path for multi-language adaptation. See Multi-language Adaptation for usage instructions.

II. SDK Version

In the project.miniapp.json file, enter the corresponding version number in the "SDK Version" field for Android/iOS to apply the changes.

  • For Android SDK update logs, see: Android Update Logs.

  • For iOS SDK update logs, see: iOS Update Logs.

  • If you need to support iPad compatibility on iOS, please check the "Enable iPad" option here.

  • Additionally, you can check for new SDK versions in the WeChat Developer Tool via "Menu Bar > Tools > SDK Version Detection". If available, you can update immediately.

3. CPU Type

When Android apps are published to different app stores, the APK packages have different requirements: 32-bit packages, 64-bit packages, or 32/64-bit compatible packages.

Developers can select the following configurations to build the corresponding packages.

Notes:

  • Selecting armeabi-v7a builds a 32-bit package.
  • Selecting arm64-v8a builds a 64-bit package.
  • Selecting both builds a 32/64-bit compatible package.
  • If none are selected, a 64-bit package is built by default.

IV. Debug Mode Configuration

You can configure here whether to enable vConsole for the Android/iOS multi-platform apps to be built.

For more detailed rules, refer to vConsole.

V. Extended SDK Configuration

To reduce the SDK size, the base SDK does not include certain JSAPIs for extended features. If developers need to use these extended API capabilities, they must select the corresponding Extended SDKs.

For details on Extended SDKs and JSAPIs, see API Overview.

For details on the LBS SDK, see Location Service Usage Guide.

For details on the GDT SDK, see Tencent Ads Usage Guide.

For detailed rules and descriptions of more SDKs, see Extended SDKs.


{
  "mini-android": {
    "sdkVersion": "1.5.2", // Android SDK version
    "useExtendedSdk": {
      "media": false,
      "bluetooth": false,
      "network": false,
      "scanner": false,
      "xweb": false,
      "open": false,
      "nfc": false
    }
  },
  "mini-ios": {
    "sdkVersion": "1.6.8", // iOS SDK version
    "useExtendedSdk": {
      "WeAppOpenFuns": true,
      "WeAppNetwork": false,
      "WeAppBluetooth": false,
      "WeAppMedia": false,
      "WeAppLBS": false,
      "WeAppOthers": false,
      "WeAppLive": true
    }
  }
}

6. Official Plugins

Configure the official plugins required for multi-platform applications here.

The currently supported plugin is "Message Push". For more detailed rules and descriptions, see the Message Push User Guide.

7. Application Icon

In the project.miniapp.json file, navigate to the "Icon Configuration" section for Android/iOS and enter the icon path that complies with the size specifications to complete the icon configuration.

The "icon" here refers to the "App Icon" displayed on the phone's home screen after the application is installed.

Note: The icon sizes for Android and iOS applications differ. Please fill in the values according to the size specifications indicated by the development tools.


{
  "miniVersion": "v2",
  "name": "Mai Duo Duo", // Application name
  "version": "0.0.1", // Application version name
  "versionCode": 100, // Application version number
  "i18nFilePath": "i18n",
  "mini-android": {
    "icons": {
      "hdpi": "",
      "xhdpi": "",
      "xxhdpi": "",
      "xxxhdpi": ""
    }
  },
  "mini-ios": {
    "icons": {
      "mainIcon120": "",
      "mainIcon180": "",
      "spotlightIcon80": "",
      "spotlightIcon120": "",
      "settingsIcon58": "",
      "settingsIcon87": "",
      "notificationIcon40": "",
      "notificationIcon60": "",
      "appStore1024": ""
    }
  }
}

8. App Launch Page Configuration

In the project.miniapp.json file, navigate to the "Launch Screen Configuration" for Android/iOS and enter the image path that conforms to the size specifications to complete the launch page configuration.

The "Launch Screen" here refers to the splash screen displayed when the App starts. The application's home page is entered only after the launch screen has finished loading.

Note: The launch page dimensions for Android and iOS apps differ. Please follow the size specifications indicated by the development tools.

IX. Privacy Policy Dialog Configuration

In the project.miniapp.json file, navigate to the "Privacy Policy Dialog Configuration" section for Android/iOS, check the option, and fill in the path to the content configuration file.

The "Privacy Policy Dialog" refers to the privacy policy agreement that pops up when the app launches, explaining the behavior of user data collection.

For detailed usage guidelines, see Privacy Policy Dialog Configuration.


{
  "mini-android": {
    "privacy": {
      "enable": true,
      "template": "111",
      "contentViewImage": "222",
      "cancelButtonImage": "333",
      "confirmButtonImage": "444",
      "enableViewOnly": true
    }
  },
  "mini-ios": {
    "privacy": {
      "enable": true,
      "template": "11",
      "contentViewImage": "22",
      "cancelButtonImage": "33",
      "confirmButtonImage": "44",
      "enableViewOnly": true
    }
  }
}

X. Android Permission Description Configuration

In accordance with the requirements of the Ministry of Industry and Information Technology for the special rectification of App violations of user rights, the application's privacy policy must describe in detail the purpose of each permission used.

To facilitate the configuration of permission usage descriptions, developers can configure them here.

For details, please refer to the Android System Permission Configuration Guide.


{
  "mini-android": {
    "privateDescriptions": {
      "ACCESS_COARSE_LOCATION": "aa",
      "ACCESS_FINE_LOCATION": "bb",
      "CAMERA": "cc",
      "POST_NOTIFICATIONS": "dd",
      "READ_CONTACTS": "ee",
      "READ_PHONE_STATE": "ff",
      "RECORD_AUDIO": "gg",
      "READ_EXTERNAL_STORAGE": "hh",
      "WRITE_EXTERNAL_STORAGE": "ii",
      "READ_MEDIA_IMAGES": "jj",
      "READ_MEDIA_VIDEO": "kk",
      "READ_MEDIA_AUDIO": "ll",
      "READ_MEDIA_VISUAL_USER_SELECTED": "mm"
    }
  }
}

11. iOS Privacy Information Access Permission Descriptions

In the project.miniapp.json file, go to "iOS - Privacy Information Access Permission Descriptions" to complete the permission descriptions for iOS privacy information access.

"Permission Description" refers to the purpose description provided by the App when requesting user authorization for a specific permission.

For details, see iOS Privacy Information Access Permission Descriptions.


{
  "mini-ios": {
    "privateDescriptions": {
      "NSPhotoLibraryUsageDescription": "11",
      "NSCameraUsageDescription": "22",
      "NSMicrophoneUsageDescription": "33",
      "NSLocationWhenInUseUsageDescription": "44",
      "NSLocationAlwaysUsageDescription": "55",
      "NSLocationAlwaysAndWhenInUseUsageDescription": "66",
      "NSContactsUsageDescription": "77",
      "NSCalendarsUsageDescription": "88",
      "NSRemindersUsageDescription": "99",
      "NSBluetoothPeripheralUsageDescription": "10",
      "NSBluetoothAlwaysUsageDescription": "11",
      "NSSpeechRecognitionUsageDescription": "12",
      "NSLocalNetworkUsageDescription": "13",
      "NSSystemAdministrationUsageDescription": "14",
      "NSPhotoLibraryAddUsageDescription": "15"
    }
  }
}

12. Built-in Menu Invocation Configuration

To better identify abnormal feedback regarding the SDK, we provide the ability to upload SDK runtime logs to the official backend using the SDK menu bar.

Developers can configure whether to enable "Built-in Menu Invocation Configuration" here. Once enabled, the relevant menu can be invoked on the App side via the corresponding gestures, and logs can be uploaded. For details, refer to Uploading SDK Runtime Logs.

XIII. Other Common Android Settings

You can configure other information for your Android app here.

  • You can configure "URL Schemes" to enable opening the current app from other apps. To listen for this event, refer to the registOpenURL interface.
  • "targetSdkVersion" is used to configure the Android version (API level) that your app targets. For details, see Android targetSdkVersion Settings.
  • "minSdkVersion" is used to configure the integer representing the minimum API level required for the app to run. If the system's API level is lower than the value specified in this property, the Android system will prevent users from installing the app. The default value for this setting is 21. Please do not specify a value lower than 21.
  • "Resource File Configuration" is used to configure the paths of native resource files that need to be added to the project's app directory. This is generally used in conjunction with Android plugins. For details, see Configuring Native Resources for Android.

14. iOS Open URL App Launch Support for Page Navigation Configuration

After enabling this configuration, when the App is opened via Universal Links or URL Scheme, parameters can be passed to automatically navigate to a specific App page. For details, refer to Monitor App Entry Events.

Developers can configure the iOS app's info.plist here.

Developers can also customize key/value pairs in info.plist. Switch project.miniapp.json to JSON format, then add the customInfoPlist key under mini-ios, with the value set as an object. You can define key/value pairs within this object, which will ultimately be applied to info.plist.

Note: The framework also sets info.plist configurations, which take higher priority than those in customInfoPlist. Specifically, keys with the same name will be overridden.

16. Multi-Platform Plugin Configuration

Developers can configure the Android/iOS plugins used by multi-platform applications here. For details, please refer to Multi-Platform Application Plugin Usage Guide.