Installation Guide
First of all, you will need your Application key to initialize the Framework. How to get an Application key?
Installing the MCSS Framework for Swift (iOS)
Method 1: Manual Installation
-
Download the MCSSLib.xcframework Framework and the UIView+MCSS.swift file class from
https://github.com/getmcss/MCSS-Swift or use the command:
Both files can be located in the sources directory.
git clone https://github.com/getmcss/MCSS-Swift
- Drag and drop MCSSLib.xcframework and UIView+MCSS.swift to your project, mark the option copy items if needed.
- Go to embedded content and mark MCSS as embed and sign.
Method 2: Swift Package Manager
- In Xcode, select File > Swift Packages > Add Package Dependency.
-
Follow the prompts using the Github URL:
https://github.com/getmcss/MCSS-Swift.git and a minimum semantic version of v1.0.0
https://github.com/getmcss/MCSS-Swift.git
Installing the MCSS Framework for Java (Android)
Method 1: Manual Installation
-
Download the mcss-android-release.aar framework from the
https://github.com/getmcss/MCSS-FRAMEWORK-ANDROID
if your project uses Android
git clone https://github.com/getmcss/MCSS-FRAMEWORK-ANDROID
- In the main module of your Android Studio project verify that the libs folder exists.
- Copy the mcss-android-release.aar Framework you just downloaded into the libs folder.
-
In your Android Studio project open the build.gradle file of the
project, add the following code fragment:
dependencies { implementation files('libs/mcss-android-release.aar') }
Method 2: Gradle Package Manager
-
Open the project's settings.gradle file in your Android Studio project
and add the following code fragment:
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { ... maven { url 'https://jitpack.io' } } }
-
Open the module's build.gradle file, add the following code fragment:
dependencies { implementation 'com.github.getmcss:MCSS-FRAMEWORK-ANDROID:1.0.0' }