Giter VIP home page Giter VIP logo

Comments (7)

renege avatar renege commented on May 28, 2024

@moberwasserlechner

> Task :byteowls-capacitor-filesharer:compileReleaseJavaWithJavac
Note: /Users/xxx/Code/foobar/app/node_modules/@byteowls/capacitor-filesharer/android/src/main/java/com/byteowls/capacitor/filesharer/ConfigUtils.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

from capacitor-filesharer.

moberwasserlechner avatar moberwasserlechner commented on May 28, 2024

This is just a warning. Don't worry about it.

Please share your versions (Cap, Android, Plugin) and your plugin config.

from capacitor-filesharer.

renege avatar renege commented on May 28, 2024

What is the correct plugin config?
What dependency to use in build.gradle for the capacitor-android version? Think that's the issue here @moberwasserlechner

from capacitor-filesharer.

moberwasserlechner avatar moberwasserlechner commented on May 28, 2024

Then please share your build.gradle and your version of Capacitor. I'm not able to help if you donot provide that information.

from capacitor-filesharer.

renege avatar renege commented on May 28, 2024
apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "foo.bar.foo"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 6
        versionName "1.0.2"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    maven {
        url  "https://dl.bintray.com/ionic-team/capacitor"
    }
    flatDir{
        dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'


    implementation 'ionic-team:capacitor-android:1.0.0-beta.17'
    
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation project(':capacitor-cordova-android-plugins')
}

apply from: 'capacitor.build.gradle'

try {
    def servicesJSON = file('google-services.json')
    if (servicesJSON.text) {
        apply plugin: 'com.google.gms.google-services'
    }
} catch(Exception e) {
    logger.warn("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
}

from capacitor-filesharer.

moberwasserlechner avatar moberwasserlechner commented on May 28, 2024

So you're using Capacitor beta17 but the plugin needs at least 1.0.0. See readme.

Please look at a current Capacitor project and upgrade. You need to remove at least mplementation 'ionic-team:capacitor-android:1.0.0-beta.17'. But upgrading your app is out of scope.

from capacitor-filesharer.

moberwasserlechner avatar moberwasserlechner commented on May 28, 2024

It seems that the issue was not related to the plugin. Plugin needs Capacitor 1.0.0+.

from capacitor-filesharer.

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.