-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
44 lines (36 loc) · 1.1 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
group 'card-applets'
apply plugin: 'javacard'
// Common settings, definitions
final def rootPath = rootDir.absolutePath
final def libs = rootPath + '/libs'
final def libs_gp211 = rootPath + '/libs/globalplatform-2_1_1'
final def libsSdk = rootPath + '/libs-sdks'
final def JC304 = libsSdk + '/jc304_kit'
convertJavacard {
dependsOn ':tools:convertJavacard'
}
javacard {
sdkVersion = "3.0.4"
cap {
packageName = 'org.idpass.datastorage'
version = '0.1'
aid = '0xF7:0x69:0x64:0x70:0x61:0x73:0x73:0x03'
applet {
className = 'DatastorageApplet'
aid = '0xf7:0x69:0x64:0x70:0x61:0x73:0x73:0x03:0x01:0x00:0x01'
}
dependencies {
compile fileTree(dir: libs_gp211, include: '*.jar')
javacardExport files([
libs_gp211,
rootDir.absolutePath + '/build/javacard/'
])
compile files(rootDir.absolutePath + '/build/classes/java/main/')
compile project(':tools')
}
}
}
compileJava {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}