Cannot fork cordova plugin

I can import it using the git repository, however i need as a zip because of some changes i need to make to the plugin however when generating the APK it is given as an invalid plugin. 


{ "resource": "cordova-plugin-inapppurchase-master.zip", "plugin": { "resource": "cordova-plugin-inapppurchase" } }

i also tried with the but same result. I'm pretty sure the id is the one ive typed.


Hi,

- Try creating a folder which will contain your plugin files and folders & then create a zip from that folder.

Consider for example :

1- Create a folder named "AssifPlugin", 

2- Create a zip file & it's name will be AssifPlugin.zip 

3-  Make sure the newly created zip has "AssifPlugin" folder 

4- Also the package.json is inside "AssifPlugin" folder. 

5- Then in extensibility configuration :


{
    "resource": "AssifPlugin.zip",
    "plugin": {
        "resource": "AssifPlugin"
    }
}


Note: In your example as per your question, I can see the resource name you mentioned, both are different like 

{ 
   "resource": "cordova-plugin-inapppurchase-master.zip", 
   "plugin": { 
              "resource": "cordova-plugin-inapppurchase" 
             } 
}


Hope it helps,

Assif


I've done all that. Regarding the name, it's properly set up, it's the id that I found inside the package.json or plug in.json(not on the computer right now, but I followed the steps from the documentation). Not tested it all but I forked the plug into my own repository and pointed the url. And I was able to generate the apk this time. I will later test if it actually works. I thank you for the help nonetheless.