How to keep AdColony with Proguard in Unity? [closed] - unity3d

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm using Proguard and R8 minify on my Unity Game in order to handle Admob Mediation. I integrated AdColony into the game, but during runtime on device it seems that AdColony is removed in the cleanup before the APK is made.
I am unsure what keep line I need to add to my proguard-user file in order to make AdColony work.
Does anyone know?
For example, the following example is from a line which is supposed to set GDPR settings for AdColony:
2020/12/17 17:05:02.861 9593 9661 Error Unity AndroidJavaException: java.lang.NoSuchMethodError: no non-static method with name='setGDPRRequired' signature='(Z)Ljava/lang/Object;' in class Ljava.lang.Object;
Thanks in advance!

I managed to find the answer myself, so first I'll say what needed to be added, and then how I figured out what to add.
The fix for me was to add the following line to my proguard-user.txt file:
-keep class com.adcolony.sdk.** { *; }
From what I saw, in my Unity project under Assets/Plugins/Android, I had a bunch of packages, one of them named com.adcolony.sdk-4.3.0. Because the naming convention seemed to match the files which usually appear in the proguard file, I tried adding the aforementioned keep line to my file, and it worked!
I will say that I know almost nothing when it comes to proguard. If this was a mere coincidence and the file I kept using that command for not coming from the package I found in the Android directory, please comment down below so I and whoever discovers this in the future will be better informed.

Related

Firebase for iOS app is not working as expected [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I have been having this issue where I follow all steps to install and run firebase on my app but when I attempt to use it, there is no sign of Firebase working. I create a new profile and even if all the parameters are right, it displays an error. at first I though it was me until I downloaded a working project and tried to create an account on that and it did not connect to firebase. Does anyone here have an idea of what i should do?
note: I followed all steps on firebase's site and I even linked a project but it seems the feature to test connection is no long there.
Completed**** After some struggle i took everyones advice and i instead re-did the project following the same steps. it seems as if i had deleted the pod file at the beginning creating connection issue and it seems to have solved everything. I apologize for the vagueness of everything but being new i wasnt sure how else to explain myself. thank you to everyone who had helped!
As #jnpdx mentioned in the comments, it is very difficult for others to know what the exact issue is without more information.
However, I'll take a stab in the dark. Since you tried with a working project and it still didn't work, I'd say it's not related to your code. You are probably missing a step that was described in the Firebase Docs. I would re-read them, paying close attention to the authentication section, and hopefully you will find the step you are missing. It could be something as simple as not enabling a certain authentication provider, or forgetting to add the GoogleService-Info.plist file into your project (if you're using Google Sign-in).
Best of luck.

Live SASS Compiler in VSCode is not working? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Anyone have an idea why live sass compiler extension on vs code is not working?
I did try to reinstall extension and to edit path saving settings and even to reinstall vs code but nothing.
The problem is that it worked for a short period of time and just stopped, like it is some bug or something because it is constantly showing 'working on it..' but nothing is happening. Is there some issue with extension or it could be up to myself?
Please if someone have an idea what could cause this problem, I will appreciate answer.
thank you.
You more than likely have invalid syntax somewhere in your scss.
I once had the same issue that was caused by an empty property.
Empty properties such as background-image: linear-gradient(), url(); will hault the compiler which will therefore not continue watching your scss, thus the eternal "working on it..".
I had the same issue so I went through my SASS code and realized I had added a media query that was empty. I recommend you go through the whole source making sure you have all ';' and values added. If you think it could be a line, try deleting or commenting out and running it again!
You probably have installed some other extension that is disabling SASS from running as it should. Trying uninstalling other text/styling extensions.

Unity and vuforia can't get 3D character to spawn [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I'm trying to get Unity and Vuforia to work together with spawning a 3D object on a targeted AR image. I try it thru my webcam and everything is settled. When I put my AR target image in front of the camera, a 3D object is supposed to spawn in the camera. In tutorials and forums everyone talks about checking two things in the ARcam inspector called: Load databasename and another called Activate.
The problem is that I'm stuck in is that an update took these choices away from the program. And I guess it is replaced with something else somewhere in Unity. The part where I want to load the 3D object when I cam the targeted image. So my question is: Is there anyone out there who work with this and know how do I activate the function? Cause I can't find anything in forums or elsewhere. Could be that the update is rather new, but every tutorial is based on the previous version of Unity.
Also, when I check the console log, it reacts to the target image and when I move it away it says "lost" so I know that part works. But as I said before, nothing spawns on it. And I followed a tutorial where it works in the previous version of Unity, therefore I don't think there is any problems with sizes of the target or the 3D object.
I am ashamed, I forgot to put the picture as a child under the camera. Thank you for all the comments.

typo3 site offline after extension upload [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 9 months ago.
Improve this question
I just uploaded a new extension to a typo3 site and the site went offline. I am getting a '500 internal server error'.
What can I do to rewind the operation and/or to bring the site online again?
Try to uninstall the extension via the extension manager module in the backend. If that is broken too then you need to do so via manually editing the configuration file. it's located in the typo3conf folder and named localconf.php for version 4.x and LocalConfiguration.php for version 6.x.
For localconf.php you need to erase the key of that extension from the two extList entries. There are two: one for the back- and one for the frontend.
For LocalConfiguration.php it's working similar, but i can't remember by heart a.t.m.
After saving this file you should remove all the typo3conf/temp* files to make sure that TYPO3 recreates them and not loads a wrong list of extensions.

What are the most common virus file types currently circulating? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on a project that will involve file upload to a server. I am interested in understanding what kinds of files virus writers currently tend to target. I am aware of the following threads:
How would you programmatically test a file for viruses ?
ensuring uploaded files are safe
How can I determine a file’s true extension/type programatically?
Server side virus scanning
But am interested in general in finding out about common attack vectors.
All of them. There aren't any "safe" file types when a JPG image can infect you with a virus and you can even trick the browser to execute JavaScript in any file no matter its declared type.
But the biggest and most widespread danger doesn't even involve uploaded files - ANY text that is entered by users and displayed on your page is a potential vector of Cross-Site-Scripting attacks.
I ran an "upload file" form for a little while and a few things I found:
All sorts of PHP scripts (shells, redirects, various "owned by $LAMER", you name it)
I think I had a few browser exploits (.html, .jpgs)
A bunch of files with the wrong extensions (ie, PHP scripts with the extension .rar, hoping that the server's mime-type guesser did the wrong thing)
Zip files full of all of the above
Anyway, those are just a few things I found. Hope they are helpful.
.exe and .scr are most common filetypes. Also, there are "tricks" with double extensions like readme.txt.scr or readme.doc.exe
exe is probably the most common