Create the project
iOS
Android
Create an empty project with XCode, then create a file called Podfile in the root directory of the project. We will use the Swift language, but all of this can be translated to Objective-C.
We will use CocoaPods to install the SDK in our project. If you have not installed CocoaPods yet, open a terminal window and run this command:
1
$ gem install cocoapods
Copied!
After, create a Podfile, this can be done by running
1
$ pod init
Copied!
Open the Podfile create and write this, replacing YourTarget with the name of your target:
1
platform :ios, '10.0'
2
โ€‹
3
target 'YourTarget' do
4
use_frameworks!
5
โ€‹
6
pod 'MBurger'
7
end
Copied!
Then open terminal and run
1
$ pod install
Copied!
This will create a new .xcworkspace file, so remember to use this from now on.
If everything has gone well you will have installed the MBurger SDK in your project.
Add the MBurger SDK dependency from Maven or download it from the Github project page, then open Android Studio and click on New Project, setting up minimum SDK at least OS version 4.2.
โ€‹
Last modified 1yr ago
Copy link