Skip to content

2.0.0-alpha-04

Compare
Choose a tag to compare
@DatL4g DatL4g released this 14 Apr 15:06
· 48 commits to master since this release
3e87e73

This is a work in progress release as new features are added/planned.
Fixes some compile exceptions.

Take a look at the https://github.com/DatL4g/Sekret/releases/tag/v2.0.0-alpha-01 release first.

Common code

This release comes with a Sekret class that can be called from common code.

// Nullable as Desktop-JVM and Android may return null
// Native targets will never return null
// JS targets will never return null
val secretValue: String? = Sekret.getValue(key)

Plugin Configuration

sekret {
	/** Configuration for generating secrets */
    properties {
        enabled.set(true) // Important if you wan't to keep using generated secret
        packageName.set("your.package.name")
		// other value changes

		nativeCopy {
			desktopComposeResourcesFolder // set the location for desktop targets where the native binary should be placed
			androidJNIFolder // set the location for android where the native binary should be placed
		}
    }
}

Tasks

This release comes with new tasks to support minimal configuration.

  • copySekretNativeBinary Only copies the native binaries (Desktop-JVM and Android) to the specified directories
  • createSekretNativeBinary Compile secrets to native binaries
  • createAndCopySekretNativeBinary Combination of createSekretNativeBinary and copySekretNativeBinary
  • generateSekretBuildScript Generates a build script by checking your dependant target
  • generateSekret Generates secrets provided in properties