-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
54 lines (50 loc) · 1.27 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
45
46
47
48
49
50
51
52
53
54
apply plugin: 'javacard'
dependencies {
testCompile 'com.github.martinpaljak:apdu4j:18.10.04'
compile 'com.github.martinpaljak:globalplatformpro:18.09.14'
}
javacard {
config {
jckit '../oracle_javacard_sdks/jc221_kit'
cap {
packageName 'fr.bmartel.helloworld'
version '0.1'
aid '01:02:03:04:05:06:07:08:09'
output 'applet.cap'
applet {
className 'fr.bmartel.helloworld.Counter'
aid '01:02:03:04:05:06:07:08:09:01'
}
}
}
scripts {
script {
name 'select'
apdu '00:A4:04:00:0A:01:02:03:04:05:06:07:08:09:01:00'
}
script {
name 'balance'
apdu '00:02:00:00:00'
}
script {
name 'credit+5'
apdu '00:04:00:00:02:00:05'
}
script {
name 'debit-5'
apdu '00:06:00:00:02:00:05'
}
task {
name 'balance'
scripts 'select', 'balance'
}
task {
name 'credit'
scripts 'select', 'balance', 'credit+5', 'balance'
}
task {
name 'debit'
scripts 'select', 'balance', 'debit-5', 'balance'
}
}
}