Commit inicial: fuentes MBS ERP (Genero 6) + .gitignore + docs/SETUP_PC_MBS.md

This commit is contained in:
2026-08-18 20:59:52 -04:00
commit 454973e269
5978 changed files with 2664094 additions and 0 deletions
@@ -0,0 +1,117 @@
/*
* FOURJS_START_COPYRIGHT(P,2013)
* Property of Four Js*
* (c) Copyright Four Js 2013, 2021. All Rights Reserved.
* * Trademark of Four Js Development Tools Europe Ltd
* in the United States and elsewhere
* FOURJS_END_COPYRIGHT
*/
apply plugin: 'com.android.application'
File filePath = new File(projectDir, "google-services.json")
repositories {
flatDir {
dirs 'libs', 'libs/gma', project(":cordova-plugins").file('libs')
}
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
applicationId "com.example.app"
}
signingConfigs {
extension {
keyAlias 'scaffold'
keyPassword 'scaffold'
storeFile file(projectDir.getAbsolutePath() + File.separatorChar + "keystore.jks")
storePassword 'scaffold'
}
}
buildTypes {
debug {
debuggable true
signingConfig signingConfigs.extension
}
release {
signingConfig signingConfigs.extension
}
unsignedDebug {
debuggable true
signingConfig null
matchingFallbacks = ['debug', 'release']
}
unsignedRelease {
signingConfig null
matchingFallbacks = ['debug', 'release']
}
}
android.applicationVariants.all { variant ->
def test = variant.mergeAssetsProvider.get().outputDir
if(project.hasProperty('cleanGbc')) {
variant.mergeAssetsProvider.get().doLast {
delete(fileTree(dir: variant.mergeAssetsProvider.get().outputDir, includes: ['ur/**/*'], excludes: ['ur/overrides/*']))
}
}
}
}
dependencies {
// GMA libraries
debugImplementation name: "gma-debug", ext: "aar"
unsignedDebugImplementation name: "gma-debug", ext: "aar"
releaseImplementation name: "gma-release", ext: "aar"
unsignedReleaseImplementation name: "gma-release", ext: "aar"
debugImplementation name: "gma-cordova-debug", ext: "aar"
unsignedDebugImplementation name: "gma-cordova-debug", ext: "aar"
releaseImplementation name: "gma-cordova-release", ext: "aar"
unsignedReleaseImplementation name: "gma-cordova-release", ext: "aar"
debugImplementation name: "gma-extension-debug", ext: "aar"
unsignedDebugImplementation name: "gma-extension-debug", ext: "aar"
releaseImplementation name: "gma-extension-release", ext: "aar"
unsignedReleaseImplementation name: "gma-extension-release", ext: "aar"
implementation project(':extension')
implementation project(':cordova-plugins')
// Android libraries
api "com.android.support:support-v4:28.0.0"
api "com.android.support:appcompat-v7:28.0.0"
api "com.android.support:design:28.0.0"
api "com.android.support:cardview-v7:28.0.0"
api "com.android.support:recyclerview-v7:28.0.0"
api "com.android.support:exifinterface:28.0.0"
api "com.android.support:preference-v7:28.0.0"
api "com.google.firebase:firebase-core:16.0.9"
api "com.google.firebase:firebase-messaging:18.0.0"
// External libraries
api "org.apache.commons:commons-lang3:3.7"
api "org.apache.commons:commons-text:1.4"
api "com.mikepenz:iconics-core:3.0.4@aar"
api "com.mikepenz:material-design-iconic-typeface:2.2.0.4@aar"
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
if(filePath.exists()){
apply plugin: 'com.google.gms.google-services'
}
Binary file not shown.
@@ -0,0 +1,7 @@
# FOURJS_START_COPYRIGHT(P,2013)
# Property of Four Js*
# (c) Copyright Four Js 2013, 2021. All Rights Reserved.
# * Trademark of Four Js Development Tools Europe Ltd
# in the United States and elsewhere
# FOURJS_END_COPYRIGHT
version=1.40.18 rev-64387a8f4
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.REORDER_TASKS"/>
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application>
<activity
android:name="com.fourjs.gma.monitor.Startup">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.example.app.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/>
</provider>
</application>
</manifest>
+39
View File
@@ -0,0 +1,39 @@
/*
* FOURJS_START_COPYRIGHT(P,2013)
* Property of Four Js*
* (c) Copyright Four Js 2013, 2021. All Rights Reserved.
* * Trademark of Four Js Development Tools Europe Ltd
* in the United States and elsewhere
* FOURJS_END_COPYRIGHT
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
File filePath = new File(projectDir, "app/google-services.json")
if(filePath.exists()){
classpath 'com.google.gms:google-services:4.2.0'
}
classpath "com.android.tools.build:gradle:3.5.3"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
if(project.hasProperty('buildFolderPath')) {
buildDir = "$buildFolderPath/${project.name}"
}
}
@@ -0,0 +1,44 @@
/*
* FOURJS_START_COPYRIGHT(P,2013)
* Property of Four Js*
* (c) Copyright Four Js 2013, 2021. All Rights Reserved.
* * Trademark of Four Js Development Tools Europe Ltd
* in the United States and elsewhere
* FOURJS_END_COPYRIGHT
*/
apply plugin: 'com.android.library'
repositories {
flatDir {
dirs 'libs', project(":app").file('libs/gma')
}
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
debugCompileOnly name: "gma-cordova-debug", ext: "aar"
releaseCompileOnly name: "gma-cordova-release", ext: "aar"
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
@@ -0,0 +1,10 @@
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<manifest package="com.fourjs.gma.cordovaplugins">
</manifest>
@@ -0,0 +1,23 @@
# FOURJS_START_COPYRIGHT(P,2013)
# Property of Four Js*
# (c) Copyright Four Js 2013, 2021. All Rights Reserved.
# * Trademark of Four Js Development Tools Europe Ltd
# in the United States and elsewhere
# FOURJS_END_COPYRIGHT
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/eral/software/android-studio/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
@@ -0,0 +1,57 @@
/*
* FOURJS_START_COPYRIGHT(P,2013)
* Property of Four Js*
* (c) Copyright Four Js 2013, 2021. All Rights Reserved.
* * Trademark of Four Js Development Tools Europe Ltd
* in the United States and elsewhere
* FOURJS_END_COPYRIGHT
*/
apply plugin: 'com.android.library'
repositories {
flatDir {
dirs 'libs', project(":app").file('libs/gma')
}
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
/**
* Jar extension
*/
task jar(type: Jar) {
from android.sourceSets.main.java.srcDirs
}
dependencies {
releaseCompileOnly name: 'gma-extension-release', ext: 'aar'
debugCompileOnly name: 'gma-extension-debug', ext: 'aar'
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
project.afterEvaluate {
tasks['assembleRelease'].finalizedBy "jar"
}
@@ -0,0 +1,23 @@
# FOURJS_START_COPYRIGHT(P,2013)
# Property of Four Js*
# (c) Copyright Four Js 2013, 2021. All Rights Reserved.
# * Trademark of Four Js Development Tools Europe Ltd
# in the United States and elsewhere
# FOURJS_END_COPYRIGHT
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/eral/software/android-studio/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gma.extension">
<application>
<!--Remove it when you finished to implement your extension implementation-->
<activity
android:name="com.gma.extension.activities.TestExtensionActivity"
android:exported="false"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden|screenSize"
android:windowSoftInputMode="stateHidden"
android:theme="@style/ExtensionTheme"/>
<!--Add android components here-->
</application>
</manifest>
@@ -0,0 +1,192 @@
/*
* FOURJS_START_COPYRIGHT(P,2013)
* Property of Four Js*
* (c) Copyright Four Js 2013, 2021. All Rights Reserved.
* * Trademark of Four Js Development Tools Europe Ltd
* in the United States and elsewhere
* FOURJS_END_COPYRIGHT
*/
package com.gma.extension.activities;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import com.fourjs.gma.extension.v1.ApplicationState;
import com.fourjs.gma.extension.v1.IClientHandler;
import com.fourjs.gma.extension.v1.IFunctionCall;
import com.fourjs.gma.extension.v1.IFunctionCallController;
import com.fourjs.gma.extension.v1.OnApplicationStateChangedListener;
import com.gma.extension.R;
import com.gma.extension.core.MyCustomFunctionCall;
public class TestExtensionActivity extends Activity implements IFunctionCallController
{
private OnApplicationStateChangedListener mOnApplicationStateChangedListener;
private IClientHandler mClientHandler = new IClientHandler() {
@Override
public void postDialogAction(String action) {
log("Execute action '" + action + "'");
}
@Override
public boolean isDialogActionPending(String action) {
log("Check if action '" + action + "' is pending");
return false;
}
@Override
public boolean cancelDialogAction(String action) {
log("Cancel action '" + action + "'");
return false;
}
@Override
public void setOnApplicationStateChangedListener(OnApplicationStateChangedListener onApplicationStateChanged) {
mOnApplicationStateChangedListener = onApplicationStateChanged;
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.test_activity);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.test, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int i = item.getItemId();
if (i == R.id.run_function_call) {
// Instantiate here your custom function call
// implementing IFunctionCall interface
IFunctionCall call = new MyCustomFunctionCall();
call.setFunctionCallController(this);
call.invoke(new Object[] { "Hello World!" });
return true;
} else if (i == R.id.run_activity) {
// Create here the intent to start your custom activity
/*
Intent intent = new Intent(this, MyCustomActivity.class);
startActivity(intent);
*/
return true;
}
return super.onOptionsItemSelected(item);
}
/**
* Log message
* @param msg String
*/
public void log(String msg) {
TextView tv = (TextView) findViewById(R.id.test_activity_text_view);
tv.setText(tv.getText() + "\n" + msg);
}
// IFunctionCallController implementation for test
private IFunctionCall mPendingCall = null;
@Override
public void returnValues(IFunctionCall functionCall, Object ... objects) {
String msg = "";
for (Object o : objects) {
if (!msg.isEmpty()) {
msg += ", ";
}
msg += o.toString();
}
log(msg);
}
@Override
public void raiseError(IFunctionCall functionCall, String s) {
log(s);
}
@Override
public void startActivity(IFunctionCall functionCall, Intent intent) {
startActivity(intent);
}
@Deprecated
@Override
public void startActivityForResult(IFunctionCall functionCall, Intent intent) {
startActivityForResult(functionCall, intent, 0);
}
@Override
public void startActivityForResult(IFunctionCall functionCall, Intent intent, int requestCode) {
mPendingCall = functionCall;
startActivityForResult(intent, requestCode);
}
@Override
public Activity getCurrentActivity() {
return this;
}
@Override
public IClientHandler getClientHandler() {
return mClientHandler;
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (mPendingCall != null) {
mPendingCall.onActivityResult(resultCode, resultCode, data);
}
}
@Override
public void onResume() {
super.onResume();
log("onResume");
if (mOnApplicationStateChangedListener != null) {
mOnApplicationStateChangedListener.stateChanged(ApplicationState.RESUME);
}
}
@Override
public void onStop() {
super.onStop();
log("onStop");
if (mOnApplicationStateChangedListener != null) {
mOnApplicationStateChangedListener.stateChanged(ApplicationState.STOP);
}
}
@Override
public void onPause() {
super.onPause();
log("onPause");
if (mOnApplicationStateChangedListener != null) {
mOnApplicationStateChangedListener.stateChanged(ApplicationState.PAUSE);
}
}
}
@@ -0,0 +1,54 @@
/*
* FOURJS_START_COPYRIGHT(P,2013)
* Property of Four Js*
* (c) Copyright Four Js 2013, 2021. All Rights Reserved.
* * Trademark of Four Js Development Tools Europe Ltd
* in the United States and elsewhere
* FOURJS_END_COPYRIGHT
*/
package com.gma.extension.core;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import com.fourjs.gma.extension.v1.IFunctionCall;
import com.fourjs.gma.extension.v1.IFunctionCallController;
public class MyCustomFunctionCall implements IFunctionCall
{
private IFunctionCallController mFunctionCallController;
@Override
public void setFunctionCallController(IFunctionCallController iFunctionCallController) {
mFunctionCallController = iFunctionCallController;
}
@Override
public void invoke(Object[] objects) throws IllegalArgumentException {
AlertDialog.Builder builder = new AlertDialog.Builder(mFunctionCallController.getCurrentActivity());
builder.setTitle(getClass().getSimpleName());
builder.setMessage(String.valueOf(objects[0]));
AlertDialog dialog = builder.create();
dialog.show();
}
@Override
public void onSaveInstanceState(Bundle bundle) {
}
@Override
public void onRestoreInstanceState(Bundle bundle) {
}
@Deprecated
@Override
public void onActivityResult(int requestCode, Intent intent) {
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
}
}
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".activities.TestExtensionActivity">
<TextView
android:id="@+id/test_activity_text_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".activities.TestExtensionActivity" >
<item android:id="@+id/run_function_call"
android:title="@string/run_function_call"
android:showAsAction="never" />
<item android:id="@+id/run_activity"
android:title="@string/run_activity"
android:showAsAction="never" />
</menu>
@@ -0,0 +1,14 @@
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_horizontal_margin">64dp</dimen>
</resources>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<resources>
<string name="app_name">GMA Extension Project</string>
<string name="run_function_call">Run Front-call</string>
<string name="run_activity">Run Activity</string>
</resources>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
FOURJS_START_COPYRIGHT(P,2013)
Property of Four Js*
(c) Copyright Four Js 2013, 2021. All Rights Reserved.
* Trademark of Four Js Development Tools Europe Ltd
in the United States and elsewhere
FOURJS_END_COPYRIGHT
-->
<resources>
<!-- Base application theme. -->
<style name="ExtensionTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
@@ -0,0 +1,10 @@
# FOURJS_START_COPYRIGHT(P,2013)
# Property of Four Js*
# (c) Copyright Four Js 2013, 2021. All Rights Reserved.
# * Trademark of Four Js Development Tools Europe Ltd
# in the United States and elsewhere
# FOURJS_END_COPYRIGHT
# Speed up gradle init and build
org.gradle.daemon=false
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Binary file not shown.
@@ -0,0 +1,12 @@
# FOURJS_START_COPYRIGHT(P,2013)
# Property of Four Js*
# (c) Copyright Four Js 2013, 2021. All Rights Reserved.
# * Trademark of Four Js Development Tools Europe Ltd
# in the United States and elsewhere
# FOURJS_END_COPYRIGHT
#Wed Apr 09 14:18:51 CEST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
+188
View File
@@ -0,0 +1,188 @@
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
+100
View File
@@ -0,0 +1,100 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
@@ -0,0 +1,10 @@
/*
* FOURJS_START_COPYRIGHT(P,2013)
* Property of Four Js*
* (c) Copyright Four Js 2013, 2021. All Rights Reserved.
* * Trademark of Four Js Development Tools Europe Ltd
* in the United States and elsewhere
* FOURJS_END_COPYRIGHT
*/
include ':app', ':extension', ':cordova-plugins'