In Objective-C
// You can put a Objective-C example here| import Foundation | |
| extension Array { | |
| /** | |
| Transform an array in another array with 2 (two) dimensions | |
| in format: `[ [ ],[ ] ]` | |
| # Example | |
| VStack { | |
| Image(systemName: "photo.fill") | |
| // Images SF symbols contains sizes like text fonts | |
| .font(.system(size: 60, weight: .bold)) | |
| .padding(10) | |
| Text("Error: Image not loaded :(") | |
| .font(.title) | |
| } |
| // | |
| // ContentView.swift | |
| // FlickrImages | |
| // | |
| // Created by Felipe on 27/03/2020. | |
| // Copyright © 2020 darkness. All rights reserved. | |
| // | |
| import SwiftUI |
| // Import or require the module to includes global variables from the lib | |
| import "p5.scenemanager" |
| public class Perguntas { | |
| public static String csvToQuery(Context context, String fileName) throws IOException { | |
| InputStream stream = context.getAssets().open(fileName); | |
| return csvToQuery(stream); | |
| } | |
| public static String csvToQuery(InputStream stream) throws IOException { |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| package="br.gov.fazenda.receita.pessoafisica" | |
| android:installLocation="auto"> | |
| <!-- Disable animations on debug builds so that the animations do not interfere with Espresso | |
| tests. Adding this permission to the manifest is not sufficient - you must also grant the | |
| permission over adb! --> | |
| <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> |
| // This is a working .gradle file for cordova-plugin-fcm-with-updated plugin, | |
| // to use with cordova-android 6.3.0 | |
| def FCM_CORE_VERSION = System.getenv("FCM_CORE_VERSION") ?: '16.0.9' | |
| def FCM_VERSION = System.getenv("FCM_VERSION") ?: '18.0.0' | |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| jcenter() |
| public class AndroidWebview extends CordovaWebView { | |
| /** | |
| * Use webview.sendJavascript is deprecated in latest cordova-android | |
| * Insteadof, pass a JS callback like a success function in cordova.exec() | |
| * cordova plugin JS Bridge, and execute a callbackContext.sendPluginResult(result); | |
| * in Java. | |
| * | |
| * Use this, only if you wish call JS from Java webview/cordova app in old |
To reference to a local path reference to a wordpress plugin, using Composer, you need do:
Add a repository pointing to local path (absolute or relative) like the composer.json
Add a installer-paths key to move to a specific folder when install the plugin, only if the target plugin contains
contains a composer.json with type "wordpress-plugin"