-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
security vulnerability - please update mopub lib #23
Comments
I'm in the same situation... will this be updated? |
I’ve just noticed this issue. I seldom update MoPub plugin before, as the maintaining work of MoPub things is harder than other Ad networks, as the MoPub guys don’t provide binary jar or framework package, but lots of source code files. I have to create projects to build jar and framework each time. They are really lazy. :-( As it’s a blocking issue this time, I will try to update it to latest SDK. Hope they still keep the interface compatible. |
Hi Floatinghotpot, I hope the update is working out? I am planning my next release and it would be great to know your thoughts on when it will be ready? /Christof |
Hi Floatinghotpot, Is there any news about this? thanks in advance. |
We are still waiting... Any news on this? Thanks. |
Hi Floatinghotpot, Are you dead? Can you please update the lib? Thanks |
Thanks, I am still alive, but I really hate to maintain mopub stuffs, as they did not provide binary framework and libs. They only provide source code, it's not my duty to build and maintain their lib for every their release, it's boring to death. |
I totally agree with you but I think it's yours to maintain your plugin, now it doesn't allow me to publish my app to the Play Store, and I have given you money for purchasing a licence ! |
@floatinghotpot, how can we @VincentPeraud , @jaanguita, @mobilino help? ?erhaps if using the code did not require a professional license you could get more help. On another front: GoogleAds PluginPro, for Google AdMob/DoubleClick. Thanks in advance, Like a said let us know how to help and what will work best for all. |
Sorry, I am not aware that you have a license for this plugin. As you are a commercial customer, I will find a solution and provide support. |
Just to know... i am a commercial customer too, waiting for an update. |
I too am a commercial customer. Here is what my app just got from google when I submitted my app. Hello Google Play Developer, We rejected "your app", for violating our Malicious Behavior or User Data policy. If you submitted an update, the previous version of your app is still available on Google Play. This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure. Below is the list of issues and the corresponding APK versions that were detected in your recent submission. Please upgrade your app(s) as soon as possible and increment the version number of the upgraded APK. Vulnerability APK Version(s) 10000 While these vulnerabilities may not affect every app that uses this software, it’s best to stay up to date on all security patches. Make sure to update any libraries in your app that have known security issues, even if you're not sure the issues are relevant to your app. Apps must also comply with the Developer Distribution Agreement and Developer Program Policies. If you feel we have made this determination in error, please reach out to our policy support team. Best, The Google Play Team |
Is there an ETA on the update? If needed we would be glad to help. |
Sorry for delayed for days. I am now start working on it. It may takes some time to get it works or blocked. So I will paste my progress and referenced materials here. Step 0, Read GitHub SDK DocI looked into MoPub github repo: And their documentation here: It looks MoPub now improves a lot. They also provides android library for gradle via jCenter, and ios SDK via Cocoapods. But not sure if they changed the API or not. Anyway, I need start from getting the plugin dependencies upgraded and built pass first. Step 1, Modify Plugin, Android PartInstead of building jar from source code, I attempt to use aar for gradle from jCenter. After google with keyword "cordova jcenter", I found this article (and thanks to the first comment). Then I write a src/android/plugin.gradle:
Then add following content into plugin.xml, and remove the mopub jar: <framework src="src/android/plugin.gradle" custom="true" type="gradleReference"/>
<framework src="com.mopub:mopub-sdk:4.9.0@aar" /> Step 2, Modify Plugin, iOS PartInstead of building iOS framework from source code, I attempt to use cocoapods, as their doc mentions the SDK can be used like this:
After google with keyword "cordova cocoapods", I am lucky enough to find a good tool plugin here (thanks to @blakgeek): So I write following content into plugin.xml, and remove the old MoPub framework and resource files: <dependency id="cordova-plugin-cocoapod-support"/>
<pods-config ios-min-version="9.0" uses-frameworks="true"/>
<pod id="mopub-ios-sdk" /> Step 3, Try Building Android AppNow, I try add the plugin to a new cordova project and build. cordova create test1 com.rjfun.test1 Test1
cd test1
cordova platform add ios
cordova platform add android
cordova plugin add ~/workspace/cordova-plugins/mopub
rm -r www/*
cp plugins/cordova-plugin-mopub/test/index.html www/
cordova prepare
cordova build android It starts to build cordova for android, attempt to download the gradle, but failed due to a network error.
Gradle downloading is large and slow, and I get the network issue several times before, so I temporarily hold on android build. Step 4, Try Build iOS AppNow try ios build So, I install Cocoapods first:
Now I need upgrade my ruby to 2.2+ first. After google, I find a good guideline to use RVM to install ruby: curl -sSL https://get.rvm.io | bash -s stable --ruby
source ~/.rvm/scripts/rvm
rvm use 2.3 --default
ruby --version
sudo gem install cocoapods
cordova build ios When build for ios, another error popup:
I can explain this error. The MoPub.h file is originally in MoPub.framework I built before (using zipped source code of MoPub SDK), now it's not found. Is the MoPub SDK not install correctly with pod? Let's check it. When I goto the platforms/ios folder, I cannot find MoPub SDK folder. Is it caused by interrupting of tool missing just now? Not sure. So I remove the test1 folder, and re-create it from scratch. rm -rf test1
cordova create test1 com.rjfun.test1 Test1
cd test1
cordova platform add ios
cordova plugin add ~/workspace/cordova-plugins/mopub
rm -r www/*; cp plugins/cordova-plugin-mopub/test/index.html www/
cordova prepare Now the smart pods plugin give following messages:
Then no further message and not exit. I guess it's downloading or doing some other work. As it's too late today, time to sleep. I will come back tomorrow morning to see what's the result. --- To Be Continued --- |
Oops, it gives result after a sleep:
Will continue, when have time. |
Thanks for working it! Let us know what we can do to speed things up. We have a major release coming out in the next few days. We are only waiting on the Android version, since the Security from Play store is stopping us from submitting the app with the outdated MoPub SDK. If you could focus on the Android piece first and push to a branch that would be helpful while we wait on the iOS piece. How is your WIFI connection. A really bad WIFI connection could be causing the issues you are seeing above. May want to try the downloads from a different location. On the iOS front, maybe this reference would help. One good thing about this is that after you get this setup once. Future upgrades should go a lot, lot easier. Once again, thanks for working this and if you want us to do the build and push it. We can help. |
Hi guys, I've just get the android part working and tested on my device. The changes has been committed to github in af37786, but as the iOS part is not finished, the plugin is not published to npm repo yet. You can use it from GitHub URL. I will continue to work on iOS part. |
Thanks!!! We'll let you know how it works out. |
We will wait for the iOS version too. Thanks @floatinghotpot ! |
Hi @floatinghotpot, Thanks for your work! I got the latest version from github but I cannot compile iOS, I got the following error : "MoPub/MoPub.h file not found" in MoPubPlugin.m. I noticed that you added some pods, so I ran pod install and opened the xcworkspace file, but it's still not working. Do I have to use the github version for Android and the npm version for iOS ? Thanks, |
up |
@floatinghotpot Any news on the iOS part? |
Hi did anyone get the plugin to work with android? |
??? |
@floatinghotpot what about iOS? is it available? thanks |
Think I figured out the problem. In Line 65 Should be uses-framework -> use-framework |
how i can update mopub on eclipse to 4.4.0 pleas can you help me to fix that |
intel xdk gives me a problem the code contain gradle scripts ??????? |
@floatinghotpot im building for android 2- when using phone gap im getting this message after installing on my phone Error : your mobup intergration is incomplete |
Update: Here we’ve updated the plugin to use the latest MoPub iOS SDK, via Cocoapod. Of course, tested.
Notice:
It’s NOT a real problem. Just use Xcode to open *.xcworkspace instead of *..xcodeproj. Build the “mopub-ios-sdk” scheme first, then build your cordova app scheme. |
Hi,
I received the following email. Could you update the lib and let us know when the updated version will be available?
Thanks for maintaining this plugin!
/Christof
The text was updated successfully, but these errors were encountered: