artemisoftnian / com-artemisoftnian-plugins-unityads2 Goto Github PK
View Code? Open in Web Editor NEWUnity Ads 2 plugin for cordova platform
License: Other
Unity Ads 2 plugin for cordova platform
License: Other
I am using the construct 2 addon. I want to use Unity-ads 3.4.0 version.(because unity wants all publishers to upgrade.) How can I do that? or should you do it? :)
Using "requireCordovaModule" to load non-cordova module "q" is not supported.
In afterPrepareScript.js file.
Replace the requireCordovaModule to require :
line 5: ctx.requireCordovaModule("q") to require("q")
thanks
@artemisoftnian
Hi, your plugin for Construct 3 is broken right now, can't make a build with it. Here's what appears to be the issue:
Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your
dependencies and use regular "require" to load it.
Another issue that I have is that the plugin does not have actions and conditions to set ads personalization for GDPR.
Please fix this, I will make a nice donation if you do.
When I try to build a basic project I receive this error from phonegap build:
Error - Plugin error (you probably need to remove plugin files from your app): //github.com/artemisoftnian/com-artemisoftnian-plugins-unityads2 --nohooks=.": Fetching plugin "https://github.com/artemisoftnian/com-artemisoftnian-plugins-unityads2" via git clone Using shallow clone Repository "https://github.com/artemisoftnian/com-artemisoftnian-plugins-unityads2" checked out to git ref "master" at "9dcbff3". Installing "com-artemisoftnian-plugins-unityads2" at "0.0.1" for android Error during processing of action! Attempting to revert... Failed to install 'com-artemisoftnian-plugins-unityads2': CordovaError: Uh oh! Destination "/libs/classes.jar" for source file "/tmp/gimlet/12798280/3150099/www_android/project/cordova/plugins/com-artemisoftnian-plugins-unityads2/src/android/libs/classes.jar" is located outside the project at copyFile (/tmp/gimlet/12798280/3150099/www_android/project/cordova/lib/pluginHandlers.js:231:15) at install (/tmp/gimlet/12798280/3150099/www_android/project/cordova/lib/pluginHandlers.js:74:13) at Object.process (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/cordova-common/src/ActionStack.js:56:25) at PluginManager.doOperation (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:117:20) at PluginManager.addPlugin (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:147:17) at /tmp/gimlet/12798280/3150099/www_android/project/cordova/Api.js:254:18 at _fulfilled (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:796:13) at /tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:556:49 Uh oh! Destination "/libs/classes.jar" for source file "/tmp/gimlet/12798280/3150099/www_android/project/cordova/plugins/com-artemisoftnian-plugins-unityads2/src/android/libs/classes.jar" is located outside the project
In my config file I insert:
<plugin name="com-artemisoftnian-plugins-unityads2" source="npm"/>
First, thanks so much for working on this - UnityAds seems like a really solid ad route to take.
I saw that this issue was closed, but not resolved. Still, maybe you might be able to help out...
I receive this error when I try to build using Phonegap (it's the exact same error as previously reported):
Error - Plugin error (you probably need to remove plugin files from your app): //github.com/artemisoftnian/com-artemisoftnian-plugins-unityads2 --nohooks=.": Fetching plugin "https://github.com/artemisoftnian/com-artemisoftnian-plugins-unityads2" via git clone Using shallow clone Repository "https://github.com/artemisoftnian/com-artemisoftnian-plugins-unityads2" checked out to git ref "master" at "9dcbff3". Installing "com-artemisoftnian-plugins-unityads2" at "0.0.1" for android Error during processing of action! Attempting to revert... Failed to install 'com-artemisoftnian-plugins-unityads2': CordovaError: Uh oh! Destination "/libs/classes.jar" for source file "/tmp/gimlet/12798280/3150099/www_android/project/cordova/plugins/com-artemisoftnian-plugins-unityads2/src/android/libs/classes.jar" is located outside the project at copyFile (/tmp/gimlet/12798280/3150099/www_android/project/cordova/lib/pluginHandlers.js:231:15) at install (/tmp/gimlet/12798280/3150099/www_android/project/cordova/lib/pluginHandlers.js:74:13) at Object.process (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/cordova-common/src/ActionStack.js:56:25) at PluginManager.doOperation (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:117:20) at PluginManager.addPlugin (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:147:17) at /tmp/gimlet/12798280/3150099/www_android/project/cordova/Api.js:254:18 at _fulfilled (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:796:13) at /tmp/gimlet/12798280/3150099/www_android/project/cordova/node_modules/q/q.js:556:49 Uh oh! Destination "/libs/classes.jar" for source file "/tmp/gimlet/12798280/3150099/www_android/project/cordova/plugins/com-artemisoftnian-plugins-unityads2/src/android/libs/classes.jar" is located outside the project
I have a few ideas of what could be causing it, but mostly just some questions:
Any reason it's referencing 0.0.1 and not 2.2.1?
Phonegap uses plugman to compile - could this be the problem? It seems like Phonegap isn't able to find files, but your directory tree seems to fit the specs for plugman compilation. Maybe something I'm missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.