Just like my other gist, I'll add all kinds of tweaks and fixes for Cordova android builds here.
Place your icons in the /platforms/android/res/drawable* folders. (As icon.png.) Remember to respect DPI rules.
| // Fix for BAD_ACCESS on arm64 devices | |
| // Per this diff: https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=blobdiff;f=CordovaLib/Classes/CDVCommandQueue.m;h=1eddfe37ee699289701cd4caaf68486607010501;hp=902dfa0227f1358296d2218fa0e6d5cc2a882ea6;hb=82ce4f2;hpb=7da5f2df3417de68a1b540bc00c11a95ce3dc7d6 | |
| // Should be fixed in CordovaLib 3.5 | |
| SEL normalSelector = NSSelectorFromString(methodName); | |
| if ([obj respondsToSelector:normalSelector]) { | |
| // [obj performSelector:normalSelector withObject:command]; | |
| ((void (*)(id, SEL, id))objc_msgSend)(obj, normalSelector, command); // replace the old line with this one | |
| } else { | |
| // There's no method to call, so throw an error. |
| /* The following optimizations can make your app feel more native. */ | |
| .element{ | |
| /* Disable selection/copy of UIWebView. | |
| If you tap and hold, you can usually copy content fron a webview. | |
| -webkit-user-select: none disables this functionality for a specific element. */ | |
| -webkit-user-select: none; | |
| /* Disable the iOS popup when long-press on a link. (a-element, button, etc) |
| #!/usr/bin/env ruby | |
| message_file = ARGV[0] | |
| message = File.read(message_file) | |
| $regex = /#(\d+)/ | |
| if !$regex.match(message) | |
| puts "[POLICY] Please reference an issue in your commit." | |
| exit 1 | |
| end |
| [mysqldump] | |
| user=root | |
| password=INSERT_PASSPHRASE_HERE |
| #!/bin/sh | |
| # This script swaps out a production version of the packages with a local development version (or back). | |
| echo "Removing vendor/nicoverbruggen/atlas-core..." | |
| rm -rf ./vendor/nicoverbruggen/atlas-core | |
| echo "Removing vendor/nicoverbruggen/gatekeeper..." | |
| rm -rf ./vendor/nicoverbruggen/gatekeeper | |
| # We’ll create a backup file that we can simply restore when we have to roll back the dependencies to a production version. | |
| FILE=./composer.json.bak |
| # Allow access to SQL | |
| UPDATE mysql.user SET plugin='mysql_native_password' WHERE User='root' | |
| ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root' | |
| # You should now have access via: `mysql -u root -p` using the password `root` | |
| # Allow access via any host | |
| CREATE USER 'root'@'%' IDENTIFIED BY 'root'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'; |
| !/bin/sh | |
| # If you are getting issues w/ broken dependents: try `brew reinstall apr-util` | |
| # Alternatively, check linkage here: `brew linkage php` | |
| # Disable Valet | |
| valet stop | |
| # Upgrade PHP | |
| # brew update && brew upgrade php php@8.0 php@7.4 |
| <?php declare(strict_types=1); | |
| namespace App\Console\Commands; | |
| use Illuminate\Support\Facades\DB; | |
| use Illuminate\Support\Facades\Http; | |
| use Illuminate\Support\Facades\Log; | |
| use Illuminate\Console\Command; |