|
You really aren't getting it
|
# ? Feb 14, 2023 04:52 |
|
|
# ? May 30, 2024 13:37 |
|
Yeah, sorry, I’m not. You normally call Firebase.initialize(context) from your Application subclass, and you seem to be stuffing a context reference into a singleton object, which is bad practice. Can you post more code so we have a better idea of what you’re trying to do and accomplish?
|
# ? Feb 14, 2023 05:10 |
|
Trying to setup unit tests for this analytics implementation we have that relies on firebase. For whatever reason google wrote the functions on the firebase object as extension functions which is making it difficult or impossible to mock those functions. I'll probably end up wrapping all the calls with another object that just directly forwards them without any additional logic to minimize the amount of untested code.
|
# ? Feb 14, 2023 05:31 |
|
I don’t think that will solve your issue, but you could give it a shot . If you’re only doing this for code coverage percentage then imo it’s not worth it, tho I’m sure someone else itt may have a better solution I have never successfully mocked Firebase poo poo before because as soon as you have it sorted to mock the firebase instance then you need to mock context and then you need to mock this and that and a bunch of other poo poo
|
# ? Feb 14, 2023 05:43 |
|
I googled it to make sure and I think I may be mistaking something, since you can apparently mock context nowadays
|
# ? Feb 14, 2023 05:49 |
|
Extension functions are pretty awkward in general for testing, since they don't actually "belong" to the object. Like if I had some type named Thing and in a file named Extensions.kt I wroteKotlin code:
Java code:
|
# ? Feb 14, 2023 05:49 |
|
I'm doing an exercise on tween animations of the earth orbiting around the sun. For some reason I cannot get the earth to pivot around the image of the sun, only itself. Can someone tell me what I'm doing wrong?code:
|
# ? Mar 19, 2023 20:10 |
|
You probably want some combination of rotating and moving your planet view, rather than purely rotating it.
|
# ? Mar 20, 2023 00:49 |
|
My suspicion (check with debugger) is that the sun x/y values will show 0,0, as those aren't offset from parent values. You'll probably want to place the earth directly inside the sun, then offset, then rotate.
|
# ? Mar 20, 2023 00:50 |
|
I'm embarrassed to ask because this is such a kiddy newb question, but are there any painless ways to take an APK from the Play store and extract artwork assets from it? More specifically, I was wondering if there was any way to rip textures and background art from Street Fighter Duel. I'm sure I'm being super naive here.
|
# ? Apr 7, 2023 21:31 |
|
The play store most likely not, but there are sites like APK mirror that host apks of free apps you can then download. The APK should then just be a zip file and you might find the asset in there.
|
# ? Apr 7, 2023 22:26 |
|
Yeah you can just unzip an apk, though it sounds like this is a game so the game data might be in some framework-specific format instead of PNGs
|
# ? Apr 7, 2023 23:13 |
|
Yeah I don't think the game graphics are stored as PNGs. Probably a pain in the rear end of pulling things apart to try and extract it.
|
# ? Apr 7, 2023 23:22 |
|
If you have a rooted service, I THINK the APK is downloaded to a cache folder and not immediately cleaned up.
|
# ? Apr 8, 2023 03:23 |
|
If I have, say, a game in Xamarin, is this the right way to get the location to store saves etc?code:
|
# ? Jun 8, 2023 20:28 |
|
Small White Dragon posted:If I have, say, a game in Xamarin, is this the right way to get the location to store saves etc? getFilesDir might be more appropriate, unless you specifically want them to be on potentially external storage. As per the docs you may need to use a couple permissions depending on how far back you want to be compatible.
|
# ? Jun 8, 2023 21:17 |
|
Edit: nevermind
Small White Dragon fucked around with this message at 19:55 on Jun 14, 2023 |
# ? Jun 14, 2023 19:48 |
|
Okay actual question. For those of you doing active Android projects here, I'm wondering if you have any suggestions for places that will test your app on a variety of devices at a reasonable price?
|
# ? Jul 4, 2023 07:10 |
|
The last time I looked into that, the options were either skeezy as hell, or more expensive long term than just buying the 3 or 4 most popular phones on the market rn. Ideally you’ll have a foldable (which is probably a Samsung), a non foldable Samsung, a pixel, and a OnePlus or Huawei depending on where you are in the world and where your target market is
|
# ? Jul 4, 2023 07:38 |
|
Small White Dragon posted:Okay actual question. Firebase Test Lab
|
# ? Jul 12, 2023 05:31 |
|
https://blog.pragmaticengineer.com/google-shutting-down-firebase-dynamic-links/ Classic google
|
# ? Aug 15, 2023 20:58 |
|
FAT32 SHAMER posted:https://blog.pragmaticengineer.com/google-shutting-down-firebase-dynamic-links/ Services can solve this problem via the magic and sublime mystery of "serving users a 302 based on user agent headers" easily enough that I never got the point of this. Indeed, they usually do it whether I want their loving app or not!
|
# ? Aug 15, 2023 22:02 |
|
What's pro Android development like in TYOL 2024?
|
# ? Jan 12, 2024 01:50 |
|
The same as 2020 but AS is faster and has some handy tools, Compose has made UI a lot easier, and some things are more stable or robust than they were
|
# ? Jan 12, 2024 02:14 |
|
FAT32 SHAMER posted:The same as 2020 but AS is faster and has some handy tools, Compose has made UI a lot easier, and some things are more stable or robust than they were Thanks
|
# ? Jan 12, 2024 02:53 |
|
|
# ? May 30, 2024 13:37 |
|
Infomaniac posted:What's pro Android development like in TYOL 2024?
|
# ? Jan 12, 2024 13:22 |