Swiftpack.co - namiml/nami-apple as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by namiml.
namiml/nami-apple v2.7.1
Easy Apple subscriptions & in-app purchases, with powerful built-in paywalls and A/B testing.
⭐️ 44
🕓 41 weeks ago
.package(url: "https://github.com/namiml/nami-apple.git", from: "v2.7.1")

Nami SDK logo

Nami SDK Platform Cocoapod Carthage compatible

What is Nami?

Nami is on a mission to help you grow your app business using IAPs and subscriptions. Go beyond basic StoreKit infrastructure and focus on results with:

  • Growing library of smart paywall templates to choose from, implemented natively using UIKit and SwiftUI
  • Paywall CMS so you can make change instantly, without submitting an app update
  • Experimentation engine to run paywall A/B tests so you can improve your conversion rates
  • Built-in IAP & subscription management and analytics, so you don't need another solution

Nami is simple adopt while giving you the tools you need to improve revenue. Our free tier is generous, and gives you everything you need to get started. Sign up for a free account

Get started by heading over to our quick start guide

Getting the Nami Framework

Requirements

  • iOS 11+, iPadOS 13+

Using SPM

  1. In the Xcode menu select File > Swift Packages > Add Package Dependency.
  2. Enter the URL https://github.com/namiml/NamiSDK-SwiftPackageManager into the box just below Choose Package Manager, and press the Next button.
  3. Leave the default settings of Up to Next Major and current major version number, press Next button.
  4. After making sure the correct application target is selected, click the Finish button.

Using CocoaPods

Add the following line to your Podfile. See the example in this repo Podfile.example.

pod "Nami", "3.0.0"

Then run the command

pod install

Add Manually

The Nami XCFramework is available via the Swift Package Manager or Cocoapods. You may also add the XCFramework manually to your project. If you are using Xcode 11, you need to use this option. Learn the detailshere.

Note: Updating the Nami Framework Manually

When a new version of the Nami framework is released, just drag it over your old Nami framework in your application project directory - make sure to select "replace" instead of "merge". After the framework has been copied over the old one, make sure to select "Clean Build Folder" in Xcode so it properly refreshes the binary from the framework.

Configure the SDK

In your application delegate, the Nami SDK is configured and passed your unique app ID, You can find the Nami App Platform ID under the Nami Control Center's Integrations > Apple App Store section.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

  // Configure Nami
  let namiConfig = NamiConfiguration(appPlatformID: "YOUR_APP_PLATFORM_ID_GOES_HERE")

  // optionally adjust the level of logging of the SDK
  //    .debug, .info, .warn, .error, defaults to .warn
  namiConfig.logLevel = .info

  Nami.configure(namiConfig: namiConfig)
  return true
}

Other Resources

Release Notes

Documentation

GitHub

link
Stars: 44
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v3.0.0
2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics