ShopApp_Gateway 1.0.6

ShopApp_Gateway 1.0.6

Maintained by Mykola Voronin, Radisalv Crechet, Evgeniy Antonov.



  • By
  • Mykola Voronin

Build Status codecov

ShopApp for iOS

ShopApp connects with popular ecommerce platforms like Shopify, Magento, BigCommerce, and WooCommerce to transfer them into a mobile app for iOS and Android.


So far, we’ve developed a Shopify provider for iOS and Shopify provider for Android. Currently we’re working on adding more providers and extending the features list, so stay in touch with our updates.

Set up environment

To build and submit an application to the App Store, you're required to have XCode 9 installed. If it's not installed yet, follow the instructions from the official website https://developer.apple.com/xcode/ to install XCode 9.

To install the dependencies required for the application build, ShopApp uses CocoaPods. Connect one of the providers for an online store and install all the dependencies. Here we'll use Shopify as an example.

  1. Add the following line to the Podfile:
pod "ShopApp_Shopify", "~> 1.0"
  1. Install all the dependencies:
pod install
  1. You'll also have to configure the provider to get an access to your online store. To get an access, follow the instructions on a provider's page.

Here's how to configure the Shopify provider. Add the following code:

container.register(API.self) { _ in
    return ShopifyAPI(apiKey: "API KEY",
        shopDomain: "SHOP DOMAIN",
        adminApiKey: "ADMIN API KEY",
        adminPassword: "ADMIN PASSWORD",
        applePayMerchantId: "APPLE PAY MERCHANT ID")
}
.inObjectScope(.container)

to the file ShopApp/Data/DI/DataAssembly.swift.

  1. As the result, you'll be able to open the project file and launch an app.

To create a client for another SaaS, you'll have to add the following pod:

pod 'ShopApp_Gateway', '~> 1.0.5'

to the dependencies.

  1. Next, you have to create the class that'll work with the main application and implement the Repository protocol in it.

After that, you can add a new client to the main ShopApp application

Requirements

  • iOS 10+
  • XCode 9 for app development and submission to Apple App Store
  • Cocoapods to install all the dependencies

License

The ShopApp for iOS is licensed under the Apache 2.0 license


RubyGarage Logo

RubyGarage is a leading software development and consulting company in Eastern Europe. Our main expertise includes Ruby and Ruby on Rails, but we successfully employ other technologies to deliver the best results to our clients. Check out our portfolio for even more exciting works!