Upload App to Library
Legacy Fastlane action
This page shows the legacy regional upload contract. It is not a v2 fallback. For new usage, see the OAuth v2 upload guide.
To upload app the knox library, use the following methods.
Example
lane :deploy_to_samsungknox do
...your app build step
knox_configure_library_upload_app(
auth_mode: 'legacy',
credential_key: ENV['CREDENTIAL_KEY'],
clientIdentifierJwtToken: ENV['CLIENT_IDENTIFIER_JWT_TOKEN'],
app_description: 'YOUR_APP_DESCRIPTION', #Optinal
app_file_path: 'YOUR_APP_FILE_PATH',
api_region: 'YOUR_API_REGION',
)
end
Input parameters:
warning
Provide only one of the following: credential_key or credential_path. The recommendation is to inject the key via an environment variable.
- clientIdentifierJwtToken: Client IdentifierJwtToken Token (For more information on how to get one, see here.)
- credential_key: your credential key (JSON.stringfy) (For more information on how to get one, see here.)
- credential_path: your credential path (JSON.stringfy)
- api_region: Insert the Knox region. Most of them are EU (case insensitive)
- app_description: description of the app. (Optional)
- app_file_path: The path to the built app (must include an extension like .apk)
Output:
- The action submits the upload through the legacy regional API. This operation does not report v2 processing states, so a successful response or message does not guarantee that processing is complete or the app is ready to deploy.