INTEGRATION
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root 'Podfile':source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
Add this lines at the bottom of the pods list of your root 'Podfile':pod 'AMatesiOS'
Your 'Podfile' must look like following:post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
source 'https://github.com/CocoaPods/Specs.git' use_frameworks! target 'A-Mates-iOS-Demo' do // Your pods if needed pod 'AMatesiOS' end post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
Step 3. Install CocoaPods for your projectValidate last versionpod install
Guide if needed https://cocoapods.orgpod update AMatesiOS
USAGE
Quick start
To integrate and run 'AMatesiOS' SDK in your app, you need to initialize it first. Initialize the 'AMatesiOS' instance through AppDelegate// AppDelegate.swift import AMatesiOS ... func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { ... let config = AMatesConfig( appConfig: AMatesAppConfig(appId: YOUR_APP_ID_HERE, language: .currentLocale), interfaceConfig: AMatesUIInterfaceConfig(interfaceStyle: .unspecified), // Optional baseURL: AMatesBaseURL(url: URL(string: "https://example.com")!) ) AMates.setup(with: config) ... }
INTEGRATION
Step 1. Gradle Setup
// latest stable
amates_version = "1.0"
repositories { mavenCentral() } dependencies { implementation("com.amates:amates:$amates_version") implementation("com.amates:amates-firebase:$amates_version") // for FCM support implementation("com.amates:amates-glide:$amates_version") // Optional for GlideImageLoader }
Step 2. Init SDK
class App : Application() {
override fun onCreate() {
super.onCreate()
Amates.init(application = this,
appId = 1, // your APP_ID here
domainConfig = DomainConfig.createAmatesDomainConfig("<https://example.com>"),
fileProviderAuthorities = "com.yourdomain.fileprovider",
imageLoader = GlideImageLoader(),
styleConfig = SimpleStyleConfig(
notificationIcon = R.drawable.ic_notification,
nightMode = AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
),
firebasePushTokenProvider = YourFirebasePushTokenProvider(),
loggers = listOf(LogcatLogger()))
}
}
appId
Your app Id
baseApiUrl
Base url for A-mates API requests
Media
Currently, these are 3 types of supported media within community: text, image, and link.
UI Language
By now we support 2 languages: Polish & English. You can set a preferable one during integration process.
If your app’s users speak more than 1 language, we recommend deploy a community for the biggest language cohort by altering a community button availability depending on user country or OS language. You can do it with the help of Remote Config on Firebase. If you need any help with the realization of the aforementioned scenario or you want to discuss the implementation of your own solution, please, contact us by hello@a-mates.com or chat below.
Basically, there are 2 types of user in the console: Admin and Member, whereas in terms of Client SDK, subtypes of Member (Regular Member and Banned Member) are more meaningful to consider possible activity within your community.
Learn more about the differences between user types.
Search presents in the top of the screen.
Text queries are searched in Topics, Comments, and Replies.
Search results shows from Topics to Comments, and then chronologically within each section.
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end
INTEGRATION
Deployment target iOS 13
Cocoapods Installation
Step 1. Activate CocoaPods for your project (if you didn’t use them before)
pod init
Step 2. Configure Podfile
Add this lines at the top of the pods list of your root ‘Podfile’:
source 'https://github.com/CocoaPods/Specs.git' use_frameworks!
Add pod to current target:
pod 'AMatesiOS'
Add this lines at the bottom of the pods list of your root ‘Podfile’:
post_install do |installer| installer.pods_project.targets.each do |t| t.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end