Code Monkey home page Code Monkey logo

Comments (8)

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024 1

Ah ;) I have lots of experience in Java and doing it the Capacitor way is most uncommon in the Java world.

So I used my actual code for the description as I think it's easier to read. But's your call what you want to use basically it's the same.

Further more this whole think should not be needed as soon as ionic-team/capacitor#952 is implemented. Android plugins should be discovered automatically as they are on iOS.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

As this plugin does not use cordova at all, your issue is most propably no bug I can do anything about.

Anyway here are some tips:

  • clean your project
  • try to restart your IDE
  • clear your caches
  • delete your node_modules directory
  • XCode 10+. It is most important to always clean the build because XCode caches are not updating by there own.

from generic-oauth2.

michaeltintiuc avatar michaeltintiuc commented on August 10, 2024

I am not using any cordova plugins, as I've mentioned in the description, I have just installed the plugin and ran cap update, the error was thrown within the console, not my IDE. Besides this was done on a Linux machine. I have noticed that some of the minor details in readme are out of date with the latest capacitor beta versions, perhaps it could be related? I am using beta.13

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

I only gave you some tips on how to catch your problem.

I am not using any cordova plugins, as I've mentioned in the description

The description does not say anything about you not using cordova. You just posted an error.

I have noticed that some of the minor details in readme are out of date with the latest capacitor

Please let me know, which ones you mean so I can fix it.

I am using beta.13

The plugin beta.1 needs capacitor beta.17. npm install should have informed you about that.

from generic-oauth2.

michaeltintiuc avatar michaeltintiuc commented on August 10, 2024

I see, will give it a go with an updated version, thanks for the quick replies! 👍

from generic-oauth2.

michaeltintiuc avatar michaeltintiuc commented on August 10, 2024

In terms of README, I've found that the capacitor docs are suggesting this:

// Other imports...
import com.example.myapp.EchoPlugin;

public class MainActivity extends BridgeActivity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Initializes the Bridge
    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
      // Additional plugins you've installed go here
      // Ex: add(TotallyAwesomePlugin.class);
      add(EchoPlugin.class);
    }});
  }
}

while plugin readme suggests:

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        List<Class<? extends Plugin>> additionalPlugins = new ArrayList<>();
        // Additional plugins you've installed go here
        // Ex: additionalPlugins.add(TotallyAwesomePlugin.class);
        additionalPlugins.add(OAuth2ClientPlugin.class);

        // Initializes the Bridge
        this.init(savedInstanceState, additionalPlugins);
    }

from generic-oauth2.

michaeltintiuc avatar michaeltintiuc commented on August 10, 2024

Awesome, thanks for your work!

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

I close this for now. I the problem persist with capacitor beta.17 I'll reopen it.

from generic-oauth2.

Related Issues (20)

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.