Giter Site home page Giter Site logo

cikichen / flutter_geetest_plugin Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 5.0 1.2 MB

flutter极验插件

Home Page: https://github.com/cikichen/flutter_geetest_plugin

License: MIT License

Java 36.71% Ruby 10.15% Objective-C 17.66% Dart 34.23% Shell 1.25%
geetest flutter

flutter_geetest_plugin's Introduction

pub package Build Status

flutter_geetest_plugin

Geetest Flutter plugin.

Screenshot

Screenshot

Getting Started

Basic function version, waiting for iteration.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  flutter_geetest_plugin: ^1.0.5

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:geetest_plugin/geetest_plugin.dart';

USAGE

  Future<void> getGeetest() async {
    String result;
    // Platform messages may fail, so we use a try/catch PlatformException.
    try {
      result = await GeetestPlugin.getGeetest('url: api1', 'url: api2');
    } on PlatformException {
//      _json = 'Failed to get platform version.';
    }

    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;

    setState(() {
      _json = result;
    });
  }

FAQ:

  1. [!] The 'Pods-Runner' target has transitive dependencies that include static binaries:

commenting out use_frameworks

flutter_geetest_plugin's People

Contributors

cikichen avatar

Stargazers

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

Watchers

 avatar  avatar

flutter_geetest_plugin's Issues

[!] CocoaPods could not find compatible versions for pod "GT3Captcha"

I can't get it to work. This error come from the log:

[!] CocoaPods could not find compatible versions for pod "GT3Captcha":
  In Podfile:
    geetest_plugin (from `.symlinks/plugins/geetest_plugin/ios`) was resolved to 0.1.3, which depends on
      GT3Captcha (~> 0.1.4)

None of your spec sources contain a spec satisfying the dependency: `GT3Captcha (~> 0.1.4)`.

commenting out `use_frameworks` then App can not runing.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.15.6 19G2021, locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.48.2)
[✓] Connected device (1 available)

ERRORS

  warning: Stale file '/Users/xushijie/Documents/workSpace/Flutter/etf_flutter/build/ios/Debug-iphonesimulator/MTBBarcodeScanner/MTBBarcodeScanner.framework/_CodeSignature' is located outside of the allowed
    root paths.
......
    /Users/xushijie/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:32: note: add parentheses around the cast to silence this warning
              map["versionName"] = majorVersion as! String
......
   Command CompileSwift failed with a nonzero exit code
......

  /Users/xushijie/flutter/.pub-cache/hosted/pub.flutter-io.cn/gallery_saver-2.0.1/ios/Classes/GallerySaverPlugin.m:10:17: error: definition of 'GallerySaverPlugin' must be imported from module
    'gallery_saver.GallerySaverPlugin' before it is required
    @implementation GallerySaverPlugin
                    ^
    In module 'gallery_saver' imported from /Users/xushijie/flutter/.pub-cache/hosted/pub.flutter-io.cn/gallery_saver-2.0.1/ios/Classes/GallerySaverPlugin.m:4:
    /Users/xushijie/Documents/workSpace/Flutter/etf_flutter/build/ios/Debug-iphonesimulator/gallery_saver/gallery_saver.framework/Headers/GallerySaverPlugin.h:3:12: note: previous definition is here
    @interface GallerySaverPlugin : NSObject<FlutterPlugin>
               ^
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.7.99. (in target 'Qiniu' from project 'Pods')

Building my app in release mode

Encountered an error during flutter build apk in release mode.

Task :flutter_geetest_plugin:verifyReleaseResources FAILED

android gradle配置有问题

Android build.gradle文件配置有问题,注释第一行package andoird即可正常运行

//package android

group 'me.ithome.geetestplugin'
version '1.0-SNAPSHOT'
...

感谢作者分享,除了没有成功的动画意外,配好pod 和 gradle之后还是挺好用的

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.