Giter Site home page Giter Site logo

quickverse / quickverse-android-sdk Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 1.0 418 KB

The QuickVerse Android SDK

Home Page: https://quickverse.io

License: Other

Kotlin 100.00%
kotlin kotlin-android kotlin-library localisation localisation-manager localization localization-tool localisation-tool localization-manager

quickverse-android-sdk's Introduction

Version Twitter

QuickVerse Android SDK

QuickVerse makes mobile & web app localization a breeze. Migrate your web and mobile localizations to QuickVerse Cloud, and start managing them anytime, anywhere, collaboratively.

  1. Installation
  2. Usage
    1. Import the SDK
    2. Configure the SDK
    3. Retrieve your QuickVerse localizations
    4. Access your localizations
  3. Logging & Troubleshooting
  4. FAQs
  5. Support

Installation

Add the following dependency to your module-level build.gradle file:

dependencies {
    implementation 'io.quickverse.androidsdk:quickverse:1.5.7'
}

Usage

QuickVerse is a very lightweight integration, requiring just a few lines of code.

1. Import the SDK

import com.quickverse.androidsdk.QuickVerse

2. Configure the SDK on app launch

You'll need your APIKey, retrievable from your QuickVerse account here.

QuickVerse.configure(apiKey = "{your-api-key}", appPackageName = "{your-package-name}")
QuickVerse.isDebugEnabled = true // Optionally get detailed console logs

3. Retrieve your QuickVerse.io localizations

In most cases, you'll want to download the localizations during your launch sequence - before any copy is shown to the user.

QuickVerse.getLocalizations() { success ->
    // Continue into app or handle failure         
}

Note: Keep an eye on the console. If you enable isDebugEnabled, the QuickVerse SDK will print out all available keys from your quickverse.io account.

4. Access your localized strings

text = QuickVerse.stringFor("Onboarding.Demo.Title")

Optionally provide a default value, should the key not exist in the local store.

text = QuickVerse.stringFor("Onboarding.Demo.Title", "Welcome to QuickVerse")

Recommended: Although you can access the keys "inline", as showed above, we strongly recommend you store your keys in a single file for easy maintenance, e.g:

object QVKey {
    const val onboardingDemoTitle = "Onboarding.Demo.Title"
}

You can then access your localized strings without hardcoding keys:

text = QuickVerse.stringFor(QVKey.onboardingDemoTitle)

Logging & Troubleshooting

All QuickVerse console logs start with "QuickVerse: " for easy filtering. We recommend setting QuickVerse.isDebugEnabled = true during setup, and any time you're adding new keys.

Informational Logs:

  • "Retrieving localizations for language code" - informs you which language localizations will be fetched for. Useful for testing.

Troubleshooting Logs:

  • "API Key not configured" - have you called QuickVerse.configure(apiKey: "{your-api-key}") on app launch, before you try to fetch localizations?
  • "API Key incorrect" - have you added your application to quickverse.io, and are you using the correct APIKey for the current Bundle ID? QuickVerse APIkeys are specific to bundle IDs.
  • "No response received" / "Localizations empty" - have you added at least one localization to your quickverse.io account?

Missing logs? Make sure you're setting QuickVerse.isDebugEnabled = true when you configure the SDK.

FAQs

  1. How big is your SDK? The final binary size of the QuickVerse iOS SDK is very small, just 0.01MB, or 10kb!
  2. How does your SDK handle limited connectivity? Our SDK requests all localizations on launch and caches them, so if there's limited connectivity later in the session, the localizations will still work.
  3. What kind of data does the SDK collect and how is it used? The only data our SDK transmits off the device is: language keys for translations, SDK version, and device type.
  4. Can we request changes? Absolutely! Please share your requests with us at [email protected] and we'll review and get back to you.

Support

Got a query or need support? We're always on hand to help with your integration & beyond. Just ping us at [email protected] and we'll get back to you within your QuickVerse plan's SLA.

quickverse-android-sdk's People

Contributors

edwardbeecroft avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

hgdeveloper13

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.