Implementato dynamic load module per VGAlimenti.
Implementato framework per gestire le path.
This commit is contained in:
1
dynamic_vgalimenti/.gitignore
vendored
Normal file
1
dynamic_vgalimenti/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
BIN
dynamic_vgalimenti/Integry.jks
Normal file
BIN
dynamic_vgalimenti/Integry.jks
Normal file
Binary file not shown.
31
dynamic_vgalimenti/build.gradle
Normal file
31
dynamic_vgalimenti/build.gradle
Normal file
@@ -0,0 +1,31 @@
|
||||
apply plugin: 'com.android.dynamic-feature'
|
||||
|
||||
android {
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias 'wms key'
|
||||
keyPassword 'inpmiy'
|
||||
storeFile file('Integry.jks')
|
||||
storePassword 'inpmiy'
|
||||
}
|
||||
}
|
||||
compileSdkVersion 28
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
|
||||
|
||||
}
|
||||
buildToolsVersion '28.0.3'
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation project(':app')
|
||||
}
|
||||
12
dynamic_vgalimenti/src/main/AndroidManifest.xml
Normal file
12
dynamic_vgalimenti/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:dist="http://schemas.android.com/apk/distribution"
|
||||
package="it.integry.wms.dynamic_customization">
|
||||
|
||||
<dist:module
|
||||
dist:instant="false"
|
||||
dist:onDemand="true"
|
||||
dist:title="@string/title_dynamic_vgalimenti">
|
||||
<dist:fusing dist:include="true" />
|
||||
</dist:module>
|
||||
</manifest>
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package it.integry.wms.dynamic_customization;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import it.integry.integrywmsnative.core.class_router.BaseRouter;
|
||||
import it.integry.integrywmsnative.core.class_router.MethodDTO;
|
||||
import it.integry.integrywmsnative.core.class_router.exceptions.MethodPathAlreadyDeclaredException;
|
||||
|
||||
public class DynamicContext {
|
||||
|
||||
public static void init() {
|
||||
Log.d("DynamicContext", "Caricamento personalizzazioni per VGAlimenti");
|
||||
|
||||
try {
|
||||
BaseRouter.registerPath("testToast", MethodDTO.fromName(OrdineVendita.class, "testMe"));
|
||||
BaseRouter.registerPath("distribuzioneColloV", MethodDTO.fromName(OrdineVendita.class, "distribuisciColloV"));
|
||||
|
||||
} catch (MethodPathAlreadyDeclaredException ex) {
|
||||
|
||||
}
|
||||
|
||||
Log.d("DynamicContext", "Caricamento personalizzazioni per VGAlimenti COMPLETATO");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package it.integry.wms.dynamic_customization;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class OrdineVendita {
|
||||
|
||||
|
||||
public static void testMe(Context context) {
|
||||
Toast.makeText(context, "Questo è un fottuto test di questo maledetto framework", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
public static void distribuisciColloV() {
|
||||
Log.d("OrdineVendita", "Completata distribuzione collo");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user