Giter VIP home page Giter VIP logo

android-lib-recaptcha's Introduction

Alan Tai

Making things happen, making things right, because it matters

"Good enough" isn't always good enough. If a thing is worth doing, it's worth doing well, right now! Everything I do, I strive for excellence. This is why I joined Zuhlke. Everyone in our teams strives for excellence.

Alan Tai is a technology advocate, proficient in software architecture, web and mobile application development, covering a wide-ranging knowledge domains including FinTech, AI, Telcom, and social media. He has extensive experience in delivering project at different scales of complexity, and is most enthusiastic about building ideas from the grounds-up into full-scale value-generating operations. As a champion of cloud infrastructures and DevOps, he is also recognized and certified as a Professional Cloud Architect by Google, a Certified Developer by AWS, and a Certified Azure Administrator by Microsoft.

Links

Commits

ContributionsLanguages

android-lib-recaptcha's People

Contributors

alexrenda avatar ayltai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-lib-recaptcha's Issues

NullPointerException on v1.0.2

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at android.lib.recaptcha.ReCaptcha$1.handleMessage(ReCaptcha.java:385)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

An error occurred when network connection is lost during fetching of image. Using the method below.

reCaptcha.showChallengeAsync(myRecaptchaPublicKey, this);

Publish the library to jcenter

Hi, your library looks great! But it's a hassle to integrate it to modern Gradle-based projects. Can you please publish the jar to jcenter? It's really easy.

Installation error using latest version 2.0.0

By following the installation documentation on importing reCAPTCHA via Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'android.lib.recaptcha:reCAPTCHA:+'
}

I encounter an error on upon building project

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31
  	is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
  	Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:22:5-24:34 to override.

the current app's Gradle

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.3"
    defaultConfig {
        applicationId "com.recaptcha.sample"
        minSdkVersion 18
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:design:25.3.1'
    testCompile 'junit:junit:4.12'

    compile 'android.lib.recaptcha:reCAPTCHA:+'
}

Please add support for compiled target 25.

Issue with recaptcha-samples folder.

Hi ayltai,

I am having issues building the codes that's provided in the recaptcha-samples folder with reference to Google's reCAPTCHA V2 API. I kept receiving this error message
"Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/lib/recaptcha/ReCaptcha$1.class"

I would really appreciate your advise to this issue, thank you.

Here are my codes:

apply plugin: 'com.android.application'


android {
    compileSdkVersion 25
    buildToolsVersion "26.0.2"
    defaultConfig {
        applicationId "android.lib.recaptcha.samples"
        minSdkVersion 14
        targetSdkVersion 25
        versionCode 1
        versionName "1.0.0"
        multiDexEnabled true

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'android.lib.recaptcha:reCAPTCHA:2.0.0'


}

showChallenge() method throws NetworkOnMainThreadException

I tried to reload the captcha once a user entered a wrong answer, I use this code:

ReCaptcha reCaptcha = (ReCaptcha)findViewById(R.id.recaptcha);
reCaptcha.showChallenge(SITE_KEY);

then it throws NetworkOnMainThreadException. I tried running it inside AsyncTask, then an error notice appears saying that showChallenge() must be called from the UI thread, currently inferred thread is worker...

any suggestion?

simpler

How to make simpler captcha, please.

Server Verification Support

Hi, I am trying to use this library. However, I found out there is no support for me to verify the CAPTCHA answer on my own server. What I'm trying to do is to send the API request from my server to google and get the response. But one of the parameter to pass is the challenge which your library doesn't let me achieve it. I wonder if you can please do a little modification so I can get the challenge and pass that to my server. Or do you have a suggestion for me?

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.