npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

capacitor-khipu

v2.9.4

Published

Capacitor plugin for Khipu

Downloads

97

Readme

capacitor-khipu

Capacitor plugin for Khipu

Install

npm install capacitor-khipu
npx cap sync

iOS setup

No need for aditional steps

Android setup

Main Khipu repository

For Android to be able to locate the khenshin aar you need to add the maven repository of khenshin to the allproyects section of the android/build.gradle file.

Something like:

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://dev.khipu.com/nexus/content/repositories/khenshin' }
    }
}

Note that google() and mavenCentral() repos are usually already added.

Jetpack compose and Kotlin

Khipu client for Android use Jetpack Compose technology, in order to do that the kotlin plugin must be enabled.

In the android/build.gradle file add the classpath for the org.jetbrains.kotlin:kotlin-gradle-plugin:<version> artifact

buildscript {
    
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:8.2.1'
        classpath 'com.google.gms:google-services:4.4.0'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

Note that the classpath for com.android.tools.build:gradle:<version> and com.google.gms:google-services:<version> are usually already there.

Then in the android/app/build.gradle file add the plugin at the top of the file

apply plugin: 'com.android.application'
apply plugin: 'org.jetbrains.kotlin.android'

Note that the com.android.application plugin is usually already there.

API

startOperation(...)

startOperation(options: StartOperationOptions) => Promise<KhipuResult>

| Param | Type | | ------------- | ----------------------------------------------------------------------- | | options | StartOperationOptions |

Returns: Promise<KhipuResult>


Interfaces

KhipuResult

| Prop | Type | | ------------------- | ------------------------------------------------------- | | operationId | string | | exitTitle | string | | exitMessage | string | | exitUrl | string | | result | 'OK' | 'ERROR' | 'WARNING' | 'CONTINUE' | | failureReason | string | | continueUrl | string | | events | KhipuEvent[] |

KhipuEvent

| Prop | Type | | --------------- | ------------------- | | name | string | | timestamp | string | | type | string |

StartOperationOptions

| Prop | Type | | ----------------- | ----------------------------------------------------- | | operationId | string | | options | KhipuOptions |

KhipuOptions

| Prop | Type | | ------------------------ | --------------------------------------------------- | | locale | string | | title | string | | titleImageUrl | string | | skipExitPage | boolean | | theme | 'light' | 'dark' | 'system' | | colors | KhipuColors | | showFooter | boolean | | showMerchantLogo | boolean | | showPaymentDetails | boolean |

KhipuColors

| Prop | Type | | ---------------------------- | ------------------- | | lightBackground | string | | lightOnBackground | string | | lightPrimary | string | | lightOnPrimary | string | | lightTopBarContainer | string | | lightOnTopBarContainer | string | | darkBackground | string | | darkOnBackground | string | | darkPrimary | string | | darkOnPrimary | string | | darkTopBarContainer | string | | darkOnTopBarContainer | string |