Skip to content

Commit 20e9dc0

Browse files
committed
August SDK update
1 parent 2500989 commit 20e9dc0

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.class
2+
libjava-edit-prod.sh
23

34
# Mobile Tools for Java (J2ME)
45
.mtj.tmp/

PULL_REQUEST_TEMPLATE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
## Screenshot
1010
<Optional but helpful for visual changes. GIFs are even better>
1111

12-
## JIRA Link
13-
[[Project-TicketNumber]](https://jira.corp.adobe.com/browse/Project-TicketNumber)
1412

1513
## Reviewers
1614
- @reviewer1

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,23 @@ This is a Java implementation of the various APIs provided by the Adobe Stock se
55

66

77
## Getting Started
8-
This is a maven project. Following steps are needed for getting started with this project:
9-
### Clean
8+
9+
### Note to Windows users
10+
Because of the Checkstyle plugin that runs as part of the build process, you will not be able to successfully build/package the SDK on Windows unless you instruct Git to automatically change your line endings. Per [instructions here](https://help.github.com/articles/dealing-with-line-endings/), run this command prior to pulling the repository from GitHub.
11+
12+
```shell
13+
git config --global core.autocrlf true
1014
```
15+
16+
This is a maven project. The following steps are needed for getting started with this project:
17+
### Clean
18+
```shell
1119
mvn clean
1220
```
1321

1422
### Build
1523
To build the project, you can run the below command on console -
16-
```
24+
```shell
1725
mvn package
1826
```
1927
The packages jar can be found at `target/` folder with the name `stockapissdk-<version>.jar`. This will also download the depenedent jars into `target/libs/` folder.
@@ -24,7 +32,7 @@ The above command will by default run the linting, test cases and the code cover
2432
Note - Since the test and coverage steps come later in the build process than linting, so if linting fails, you won't get the test cases and coverage reports.
2533

2634
While running the above command if clean project is not run, it may throw some random errors. So it is advisable to run below command which does cleaning as well as building in the same step -
27-
```
35+
```shell
2836
mvn clean package
2937
```
3038

src/main/java/com/adobe/stock/config/StockConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class StockConfig {
4343
* @see StockException
4444
*/
4545
public StockConfig() throws StockException {
46-
this.mTargetEnvironment = Environment.STAGE;
46+
this.mTargetEnvironment = Environment.PROD;
4747
try {
4848
this.mEndpoints = new Endpoints(this.mTargetEnvironment);
4949
} catch (StockException e) {

0 commit comments

Comments
 (0)