GithubHelp home page GithubHelp logo

genexuslabs / sdextensionssample Goto Github PK

View Code? Open in Web Editor NEW
19.0 16.0 6.0 206 KB

This repository contains extensions samples for the Native Mobile generators.

License: MIT License

Swift 44.27% Kotlin 55.73%
genexus android ios

sdextensionssample's Introduction

Native Mobile Extension Sample

This sample contains:

  • A User Control definition.
  • An External Object definition.
  • An Android Library project of a GeneXus Module that implements the two previously defined extensions.
  • An GeneXus Library definition which declares the Android Library which implements the User Control and External Object in Android and its corresponding GeneXus Module name.
  • An implementation for iOS for the User Control and External Object.
  • An app that lets you try out both extensions.

Requirements

  • GeneXus (latest upgrade is recommended)
  • JDK and Android SDK for Android generator
  • MAC machine for iOS generator

For more details see:

Instructions

Import the GeneXus Library definition to GeneXus

  • Copy the SampleLibrary directory to the Libraries directory in your GeneXus installation.

Import the User Control definition in GeneXus

  • Copy the BasicUserControl directory to the UserControls directory in your GeneXus installation.
  • Run genexus.exe /install in a command line in the Genexus installation directory.

Import the External Object definition in GeneXus

  • Open GeneXus and open the KB to work with.
  • Import the BasicExternalObject definition from BasicExternalObject\BasicExternalObject.xpz.

Import the sample app (optional).

To try out the BasicUserControl and BasicExternalObject samples you may wish to import the sample app from SampleApp\BasicSample.xpz.

Android specific

Build and Deploy the GeneXus Android Module to GeneXus

  • Set the following system environment variables:
    • GENEXUS_REPO to GeneXus Android Maven repository located in Android\m2repository inside your GeneXus installation (e.g. file:///C:/path/to/GX/Android/m2Repository, making sure it starts with the file scheme).
    • ANDROID_HOME to your Android SDK directory.
  • Run the command gradlew publishDebugPublicationToInternalRepository from the SampleModule directory.

Considerations

  • Take into account that this project uses the latest FlexibleClient version installed at GENEXUS_REPO. If you need to work with a specific one, you will have to replace it in library/build.gradle file.

Further reading

User Controls

External Objects

License

This project is licensed under the MIT License. See the LICENSE file for more details.

sdextensionssample's People

Contributors

alfoirazabal avatar cinthamo avatar cinthyariverosglb avatar finthamoussu avatar fpanizza avatar genexusbot avatar jotapeg avatar juandiana avatar ladrians avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdextensionssample's Issues

Consulta Flexible Client

Buenos días:

Quiero manejar el evento del cambio de estado del Wifi, ya tengo una clase que extiende de BroadcastReceiver, pero en el onCreate necesito registrarlo:

WifiStateReceiver wifiStateReceiver = new WifiStateReceiver();
IntentFilter intentFilter = new IntentFilter(WifiManager.NETWORK_STATE_CHANGED_ACTION);
registerReceiver(wifiStateReceiver, intentFilter);

la consulta es si para poder registrarlo debo modificar el Flexible o cómo puedo agregar esto en el onCreate, de antemano muchas gracias.

Geovanny García

Duda con clase GlobalEvents para SD

Hola buenas tardes, estoy haciendo un modulo de lectura NFC para android, usando como base el SDExtensionsSample

Basicamente hice un metodo dentro de la clase MyApi que llama un nuevo Intent, dentro de ese intent hago la lectura NFC correctamente.

Lo que quiero hacer es, el dato que obtengo de la lectura de NFC, "subirlo" de alguna manera mi proyecto de GX.

Investigando un poco encontré la Clase GlobalEvent

imagen

Se puede utilizar el metodo fireEvent para realizar algo con este dato que quiero usar?

Si es asi me podrias dar una mano?

Gracias y disculpa la molestia

Compile Error

Hello,I followed the instructions, but a compilation error occurred。
Can you give me some advice on what I should do next。
image
image

Proyecto Xcode

Buen día, quería consultar por favor si es posible tener el proyecto para Xcode.

Cordialmente,

Geovanny García

Incompatibilidad con versiones de Genexus mayores a 17u5 para usar el "uploadArchives"

Hasta GeneXus 17U5 no hay problemas, pero al intentar utilizar el ejemplo y subirlo con "uploadArchives", se da un error de incompatibilidad con el FlexibleClient de genexus.
Investigando mas me di cuenta que en nuevas versiones de genexus la ubicacion del FlexibleClient cambió, y por mas que le indique la ruta correcta el SampleModule no le reconoce y por lo tanto tiene problemas para compilar.

Restricciones de EO para Trial version

¿Existe alguna limitación para la definición de EO en la versión Trial?
He desarrollado una EO para android, creo haber seguido todos los pasos correctamente, pero aun así al llamar a alguno de los métodos me envía el siuiente error:
Process: com.genexus.fadsdk.masterpanel, PID: 13415
java.lang.NoClassDefFoundError: No ExternalApiDefinition was found for 'SDKExternalObject'.

Excarvando un poco veo que en el archivo "..\CloudNET002\mobile\Android\General_UI_MasterPanel\src\main\java\com\genexus\fadsdk\masterpanel\MainApplication.java"
no agrega la sentencia "registerModule" para mi EO (tengo incluido el "SampleModule" para verificar que este EO si se carga correctamente)

Captura de pantalla 2024-05-07 133250

Gracias.

Error compilando

Estimados, buenos dias,

segui al pie de la letra el tutorial para cargar el BasicExternalObject,
pero cuando ejecuto gradlew uploadArchives, termina con una excepcion:

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for com.genexus:FlexibleClient:+ as no versions of com.genexus:FlexibleClient are available.

Que puedo hacer para solucionar esto?

Desde ya muchas gracias!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.