Cloud packaging settings
Overview
-
From EC 7.8.0, non-debug domains can only be set when packaging an enterprise build in the IDE — nowhere else
-
From EC 7.8.0, you can change the APK’s internal domain dynamically from the cloud
-
From EC 7.8.0, you no longer set the device name in the APK — set it in the cloud
Domain packaging
Direct mode
Direct mode: the packaged APK connects to cloud control using the domain entered at pack time
Package an enterprise build and enter the cloud control address
Dynamic DNS resolve mode (recommended)
- Point a domain at an IP without ICP filing
- Resolve the domain to an IP, then connect by IP — easier when the server changes
- When packaging an enterprise build, set cloud control address to
domain:port, e.g.ecloud.devicefarm.cn:8098, and choose Resolve DNS to IP then connect
Dynamic domain
Dynamic domain mode: the APK first fetches the real cloud control address from a configured JSON URL, then connects using that address
Package an enterprise build and set the cloud control address, e.g. http://192.168.1.76:8099/remote.json
!!!! The URL must end with .json !!!!
-
Host the JSON on Aliyun OSS or any reachable URL
-
Or use Cloud control → Site management → Site license → Cloud connect URL settings (see that page for details)
-
To generate JSON: Site management → Site license → Cloud connect URL settings — enter the domain, click Copy, save as
remote.json, upload to OSS (or similar)
Format:
{"data":"BggHBAcEBwADUQJWAlYDAQMJAwICVQMBAwYDCAJVAwECVQMHAwYDUQMIAwADCQMJAFEGCAcEBwQHAANRAlYCVgMBAwkDAgJVAwEDBgMIAlUDAQJVAwcDBgNRAwgDAAMJAwg="}