Giter VIP home page Giter VIP logo

nami-amazon's Introduction

Nami SDK logo

What is Nami?

Nami is on a mission to help you grow your Fire TV app revenue from IAPs and subscriptions. Go beyond basic Amazon Appstore IAP infrastructure and focus on results with:

  • Library of smart paywall templates to choose from, implemented natively using Jetpack Compose
  • 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

  • Android SDK minimum version 22
  • SDK builds target Android 12 (API version 31)
  • SDK has been built with Java v8 and Kotlin v1.6.10

Add Maven repostiory

allprojects {
    repositories {
        google()
        mavenLocal()
        maven { url "https://packages.namiml.com/NamiSDK/AmazonAppStore/"}
    }
}

Add Nami SDK dependency

dependencies { implementation "com.namiml:sdk-amazon:3.0.5" }

Add Java 8 compatibility

android {
  ...
  // Configure only for each module that uses Java 8
  // language features (either in its source code or
  // through dependencies).
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
  // For Kotlin projects
  kotlinOptions {
    jvmTarget = JavaVersion.VERSION_1_8.toString()
  }
}

Configure the SDK

We recommend that you configure the Nami SDK as early in your app's launch as possible. This will ensure the SDK is ready to receive and process purchases.

The best spot to do this is in the onCreate() method in your class that creates your Application and inherits from Application(). Here's a full code example.

You can find the Nami App Platform ID under the Nami Control Center's Integrations > Google Play section.

import com.namiml.Nami
import com.namiml.NamiConfiguration
import com.namiml.NamiLogLevel

class DemoApplication : Application() {

  override fun onCreate() {
    super.onCreate()
    Nami.configure(
      NamiConfiguration.build(this, "YOUR_APP_PLATFORM_ID") {
        LogLevel = NamiLogLevel.INFO.takeIf { BuildConfig.DEBUG } ?: NamiLogLevel.WARN
      }
    )
  }
}

Next Steps

Once the SDK is initialized, you're ready to show a paywall. See the complete guide to setting up Nami for Amazon Appstore to find out how.

Other Resources

The Nami Amazon Appstore SDK tracks our primary Nami Android SDK.

Please find additional resources such asrelease notes, docs, and references from that repository which is linked below:

Release Notes

Documentation

References

nami-amazon's People

Contributors

namidan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.