Copy link
Mobile SDK
Name
CPAY wallet
Description cpay.world — the revolutionary app designed to empower your financial journey in the crypto universe. We specialize in crypto payments processing and multi-wallet management. Embrace seamless crypto transactions, manage your multiple wallets.
App Config
app_config.dart - file located inside your_project/lib/config directory. It is used for easier management app variables. Contact us to update your userAgent variable. Flutter version 3.3.3
Package Name
You need to define your own unique package name for the app. For this replace all instances of: com.example.app with your own package name inside android and ios folders
Splash Screen
Inside pubspec.yaml file under the flutter_native_splash: line there are parameters to set native splash screen.
To change app splash screen inside your_project/assets/images/png folder change pink_logo_x4.png with 4x pixel density, branding icon yomi_finance_text_x4.png at the bottom of the page is optional, background color is set at the color: parameter.
For android12+ versions set native splash screen under the android_12: line. Change respective files pink_logo_android12_x2.png, yomi_finance_text_android12_x4.png and color: for background color.
After all changes run command: dart run flutter_native_splash:create.
In project we use package flutter_native_splash. For more information please check out:
App Icon
Inside pubspec.yaml file under the flutter_icons: line there are parameters to set app icon.
To change app icon inside your_project/assets/images/png folder change app_icon.png and app_icon_foreground.png with 1024x1024 dimensions.
After all changes run command: flutter pub run flutter_launcher_icons
In project we use package flutter_launcher_icons. For more information please check out:
Documentation
and use the following tutorial
Code Generation
Code generation is used inside the app for navigation, assets, responses, dto, services, repositories, etc.
If changes applied to such files run command: flutter pub run build_runner build --delete-conflicting-outputs.
In project we use package build_runner. For more information please check out:
Deep Link
To set deep link with custom scheme:
For android inside your_project/android/app/main/AndroidManifest.xml file under the "Deep linking CUSTOM" comment change android:scheme and android:host parameters.
For IOS inside your_project/ios/Runner/Info.plist change parameters for the keys CFBundleURLName and CFBundleURLSchemes (e.g. app.link and yomi).
After all changes inside config.dart file update customDeepLink variable.
To set deep link with https scheme:
For android inside your_project/android/app/main/AndroidManifest.xml file under the "Deep linking LIVE" comment change android:host parameter.
Set the package_name value to your Android application ID. Set sha256_cert_fingerprints to the value you got from the previous step.
Also add to your website with the same host as you input for android:host assetlinks.json file inside ./well-known location. So that it is available by link https://my-host.com/.well-known/assetlinks.json.
Example assetlinks.json:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.app",
"sha256_cert_fingerprints":["14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5"]
}
}]
For IOS inside your_project/ios/Runner/Info.plist change parameters for the keys CFBundleURLName and CFBundleURLSchemes (e.g. app.yomi.finance and https).
Apple formats the app ID as team id.bundle id. For example: Given a team ID of S8QB4VV633 and a bundle ID of com.example, The app ID is S8QB4VV633.com.example.
Host the file at a URL that resembles the following: /.well-known/apple-app-site-association, notice that file should have no extension.
Verify that your browser can access this file.
In XCode, go to Signing & CapabilitiesClick, + Capability to add a new domain then Click Associated Domains.
Inside Associated Domains enter applinks:
Example apple-app-site-association:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "S8QB4VV633.com.example",
"paths": ["*"]
}
]
}
}
After all changes inside config.dart file update liveDeepLink variable.
For more information please check out:
Documentation Android
Documentation IOS
IOS Password autofill
Apple formats the app ID as team id.bundle id.
For example: Given a team ID of S8QB4VV633 and a bundle ID of com.example, The app ID is S8QB4VV633.com.example.
Host the file at a URL that resembles the following: /.well-known/apple-app-site-association, notice that file should have no extension.
Verify that your browser can access this file.
In XCode, go to Signing & Capabilities, + Capability to add a new domain then Click Associated Domains.
Inside Associated Domains enter webcredentials:
Example apple-app-site-association:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "S8QB4VV633.com.example",
"paths": ["*"]
}
]
},
"webcredentials": {
"apps": ["S8QB4VV633.com.example"]
}
}
For more information please check out:
App version
When building app update version inside pubspec.yaml file for the line version:
Assets
To add assets to your application, add an assets section, like this:
assets/images/svg/
Support
[email protected] or chat support on the Web.
Roadmap
New releases will be include in SDK.
Project status
Working build with the latest updates. New release with new features will be soon.