File tree Expand file tree Collapse file tree 3 files changed +35
-5
lines changed
src/main/java/com/ywesee/amiko/hinclient Expand file tree Collapse file tree 3 files changed +35
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' **'
7
+
8
+ jobs :
9
+ build :
10
+ name : Build
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v3
16
+ - uses : actions/setup-java@v2
17
+ with :
18
+ java-version : 17
19
+ distribution : adopt
20
+ - name : Setup credentails
21
+ env : # Or as an environment variable
22
+ HIN_CLIENT_ID : ${{ secrets.HIN_CLIENT_ID }}
23
+ HIN_CLIENT_SECRET : ${{ secrets.HIN_CLIENT_SECRET }}
24
+ CERTIFACTION_SERVER : ${{ secrets.CERTIFACTION_SERVER }}
25
+ CERTIFACTION_TEST_SERVER : ${{ secrets.CERTIFACTION_TEST_SERVER }}
26
+ run : |
27
+ sed "s/YOUR_HIN_CLIENT_ID/$HIN_CLIENT_ID/;s/YOUR_HIN_CLIENT_SECRET/$HIN_CLIENT_SECRET/;s#YOUR_CERTIFACTION_SERVER#$CERTIFACTION_SERVER#;s#YOUR_CERTIFACTION_TEST_SERVER#$CERTIFACTION_TEST_SERVER#" ./src/main/java/com/ywesee/amiko/hinclient/HINClientCredentials.java.sample > ./src/main/java/com/ywesee/amiko/hinclient/HINClientCredentials.java
28
+ - name : Build
29
+ run : |
30
+ make bundle
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ _to build with Intellij this does not have to change._
43
43
44
44
#### 5.1 HIN Credentials
45
45
46
- Copy ` src/main/java/com/ywesee/amiko/hinclient/HINClientCredentials.java ` to ` HINClientCredentials.java ` ,
46
+ Copy ` src/main/java/com/ywesee/amiko/hinclient/HINClientCredentials.java.sample ` to ` HINClientCredentials.java ` ,
47
47
and fill in the fields.
48
48
49
49
#### 6. AndroidManifest.xml
Original file line number Diff line number Diff line change 1
1
package com.ywesee.amiko.hinclient;
2
2
3
3
public class HINClientCredentials {
4
- public static final String HIN_CLIENT_ID = "";
5
- public static final String HIN_CLIENT_SECRET = "";
6
- public static final String CERTIFACTION_SERVER = "";
7
- public static final String CERTIFACTION_TEST_SERVER = "";
4
+ public static final String HIN_CLIENT_ID = "YOUR_HIN_CLIENT_ID ";
5
+ public static final String HIN_CLIENT_SECRET = "YOUR_HIN_CLIENT_SECRET ";
6
+ public static final String CERTIFACTION_SERVER = "YOUR_CERTIFACTION_SERVER ";
7
+ public static final String CERTIFACTION_TEST_SERVER = "YOUR_CERTIFACTION_TEST_SERVER ";
8
8
}
You can’t perform that action at this time.
0 commit comments