Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
allprojects { 
  repositories {
    google()  
    mavenCentral()
    
    maven {
       url 'https://jitpack.io' 
    }
    
    maven {
      url ""${artifactory_url}/${repository_name}"
      // The Artifactory (preferably virtual) repository to resolve from 
      credentials {
        username "${artifactory_user}"
        password "${artifactory_password}" }
    } 
  }
}

...

Code Block
plugins {
  id 'com.android.application' 
}

android { 
  compileSdkVersion 31
  defaultConfig {
    ...
  }
  
  buildTypes {
    ...
  }
  
  compileOptions {
    ...
  }
}
  
dependencies {
  ...
  implementation 'ca.amadis.agnos:agnos-amadis-sred:3.5.7' 
}<customer>-<mode>-<build_type>:<version>' 
}

With:

  • <customer>: the name of your company (e.g. ‘amadis')

  • <mode>: either ‘sred’ or ‘nosred’

    • 'sred' means the PCI SRED protection is active, all sensitive card data are store securely, encrypted

    • ‘nosred’ means the PCI SRED protection is not active

  • <build_type>: either ‘debug’, ‘release’ or ‘protect’

    • ‘debug’ is the classic Android debug mode with all logs and debugging capability

    • ‘release’ is the classic Android release mode plus our custom ProGuarg configuration

    • ‘protect’ is the most secure build type (and the only one that should go in production), the whole code is obfuscated and protected against a variety of attacks and reverse engineering

Agnos is the only dependency that needs to be declared. The Secure Client (secclt) is a transitive dependency and will be automatically downloaded if required.

...