Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Commit

Permalink
Add support to TLS v1.2 through BounceCastle
Browse files Browse the repository at this point in the history
Change way to perform and enable SSL Pinning
Add .editorconfig file
Add .gitattributes to ensure file format
Format code with new editor config settings
  • Loading branch information
adrianoluis committed Oct 14, 2018
1 parent 08c402e commit e618573
Show file tree
Hide file tree
Showing 44 changed files with 3,791 additions and 3,424 deletions.
28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.xml]
indent_style = tab
indent_size = 4

[*.java]
indent_style = tab
indent_size = 4
continuation_indent_size = 8

[*.bat]
indent_style = tab
end_of_line = crlf

[*.md]
trim_trailing_whitespace = false

[LICENSE]
insert_final_newline = false
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto

# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.java text
*.xml text

# Declare files that will always have LF line endings on checkout.
*.sh eol=lf

# Declare files that will always have CRLF line endings on checkout.
*.bat text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.crt binary
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ jdk:
branches:
only:
- master
- develop
script:
mvn verify
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Basta colocar o seguinte trecho de código nas configurações de compilação a
<dependency>
<groupId>me.pagar</groupId>
<artifactId>pagarme-java</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</dependency>
```

Expand All @@ -48,7 +48,7 @@ repositories {

##### Dependência
```groovy
compile('me.pagar:pagarme-java:1.4.0') {
compile('me.pagar:pagarme-java:1.4.1') {
transitive = true
}
```
Expand All @@ -57,14 +57,14 @@ compile('me.pagar:pagarme-java:1.4.0') {

##### Dependência
```
'me.pagar:pagarme-java:jar:1.4.0'
'me.pagar:pagarme-java:jar:1.4.1'
```

#### Apache Ivy

##### Dependência
```xml
<dependency org="me.pagar" name="pagarme-java" rev="1.4.0">
<dependency org="me.pagar" name="pagarme-java" rev="1.4.1">
<artifact name="pagarme-java" type="jar" />
</dependency>
```
Expand All @@ -74,22 +74,22 @@ compile('me.pagar:pagarme-java:1.4.0') {
##### Dependência
```groovy
@Grapes(
@Grab(group='me.pagar', module='pagarme-java', version='1.4.0')
@Grab(group='me.pagar', module='pagarme-java', version='1.4.1')
)
```

#### Scala SBT

##### Dependência
```scala
libraryDependencies += "me.pagar" % "pagarme-java" % "1.4.0"
libraryDependencies += "me.pagar" % "pagarme-java" % "1.4.1"
```

#### Leiningen

##### Dependência
```clojure
[me.pagar/pagarme-java "1.4.0"]
[me.pagar/pagarme-java "1.4.1"]
```

## Licença
Expand Down
11 changes: 9 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

<groupId>me.pagar</groupId>
<artifactId>pagarme-java</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
<packaging>jar</packaging>

<properties>
<!-- maven plugins versions -->
<version.cobertura.maven.plugin>2.7</version.cobertura.maven.plugin>
<version.maven.deploy.plugin>2.8.2</version.maven.deploy.plugin>
<version.maven.jar.plugin>3.0.2</version.maven.jar.plugin>
<version.maven.jar.plugin>2.6</version.maven.jar.plugin>
<version.maven.surefire.plugin>2.19.1</version.maven.surefire.plugin>
<version.site.maven.plugin>0.12</version.site.maven.plugin>

Expand All @@ -26,6 +26,7 @@
<version.inflector>1.2</version.inflector>
<version.slf4j>1.7.25</version.slf4j>
<version.junit>4.12</version.junit>
<version.bouncycastle>1.60</version.bouncycastle>

<!-- github maven plugin setup -->
<github.global.server>github</github.global.server>
Expand Down Expand Up @@ -94,6 +95,12 @@
<version>${version.slf4j}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>${version.bouncycastle}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Loading

0 comments on commit e618573

Please sign in to comment.