All Products
Search
Document Center

Step 3 add configuration files to your project

Last Updated: Sep 18, 2021

Based on the native AAR method, this document introduces the process of importing configuration files to the project.

Step 1: Fill in the configuration information, and upload signature APK

  1. On the application list page, click the application name. For example, click the application mPaaS Demo created in the previous step. See the following image:
    1

  2. On the Application details page, click to open the Configure application page.

  3. On the Configure application page, click to open the Code configuration page.

  4. On the Code configuration page, enter Package Name, namely com.mpaas.demo, such as com.mpaas.demo. Then upload the compilation, and add the signed APK install pack. For the information about the APK after quickly generating the signature, see Generate the signature APK for the console.

Step 2: Download configurations to the local system

On the Code configuration page, fill in the information, then click Download Configuration to get the configuration file of mPaaS.

The configuration file is a compressed package file. This compressed package includes a .config file and a yw_1222.jpg encrypted picture.

Notes:
  • If you are a public cloud user, you need to ensure the value of base64Code in .config file is not empty. You can ignore the yw_1222.jpg file, because the public cloud environment has abandoned this file.
  • If you are a Apsara Stack user, you do not need to focus on the value of base64Code. See Generate encrypted pictures (Apsara Stack configuration files). Generate the encrypted pictures of Apsara Stack manually, then replace the yw_1222.jpg file downloaded from the console.

Step 3: Add the configuration file to the project

Prerequisites

When you use the native AAR method to access, you need to have a native development project.

Procedure

  1. Open the existing project in Android Studio, click mPaaS > native AAR access.
  2. In the access pane, click Start Importing under the importing App configuration.
  3. Select I downloaded the configuration file Ant-mPaaS-xxxx.config from the console, which is ready for importing to the project, then click Next.

  4. In the window of Import mPaaS configuration files, select the App Module to be imported and the configuration file, then click Finish.

  5. After the process finishes, you will receive a prompt message that the configuration file has been imported successfully. Till now, you have completed the process of importing configuration files manually.