Skip to content

Commit 6616811

Browse files
Pull request #8: Removed Status method in AppVerify class and Adjust deployment process
Merge in SDK/java_telesign from feature/EOA2051 to developer Squashed commit of the following: commit 1f18ad9c08f2e006d72254bc46c2c17d4383856e Author: Juan Camilo Martinez <[email protected]> Date: Tue Jul 22 08:31:32 2025 -0500 update version commit 95517280ee60679d736230337682fd4b3e35d20d Author: Juan Camilo Martinez <[email protected]> Date: Mon Jul 21 10:50:53 2025 -0500 Removed Status method in AppVerify class and Adjust deployment process
1 parent 7082240 commit 6616811

File tree

11 files changed

+48
-80
lines changed

11 files changed

+48
-80
lines changed

RELEASE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [3.0.0](http://central.maven.org/maven2/com/telesign/telesign/3.0.0) - 2025-07-18
2+
- 2025-07-18
3+
- Removed Status method in AppVerify class.
4+
- Adjust deployment process.
5+
16
## [2.5.0](http://central.maven.org/maven2/com/telesign/telesign/2.5.0/) - 2025-05-06
27
- 2025-06-03
38
- Added patch method to RestClient.

build.gradle

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
plugins {
2-
id 'de.fuerstenau.buildconfig' version '1.1.8'
32
id 'java'
43
id 'idea'
54
id 'jacoco'
65
id 'maven-publish'
76
id 'signing'
7+
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
88
}
99

1010
group 'com.telesign'
11-
version '2.5.0'
11+
version '3.0.0'
1212

1313
sourceCompatibility = JavaVersion.VERSION_1_8
1414
targetCompatibility = JavaVersion.VERSION_1_8
@@ -59,7 +59,11 @@ if (System.getenv('TRAVIS') == null) {
5959
dependsOn configurations.runtimeClasspath
6060
from {
6161
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
62+
configurations.runtimeClasspath.files.collect {
63+
it.isDirectory() ? it : zipTree(it)
64+
}
6265
}
66+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
6367
}
6468

6569
tasks.register('clearOldJar', Delete) {
@@ -93,7 +97,7 @@ if (System.getenv('TRAVIS') == null) {
9397

9498
groupId = 'com.telesign'
9599
artifactId = 'telesign'
96-
version = '2.5.0'
100+
version = '3.0.0'
97101

98102
pom {
99103
name = 'Telesign SDK'
@@ -130,14 +134,14 @@ if (System.getenv('TRAVIS') == null) {
130134
}
131135
}
132136

133-
repositories {
134-
maven {
135-
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
136-
credentials {
137-
username = project.findProperty('ossrhUsername')
138-
password = project.findProperty('ossrhPassword')
139-
}
140-
}
141-
}
142137
}
143138
}
139+
140+
nexusPublishing {
141+
repositories {
142+
sonatype {
143+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
144+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
145+
}
146+
}
147+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/com/telesign/AppVerifyClient.java

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111
**/
1212
public class AppVerifyClient extends RestClient {
1313

14-
private static final String APPVERIFY_STATUS_RESOURCE = "/v1/mobile/verification/status/%s";
15-
1614
public AppVerifyClient(String customerId, String apiKey) {
1715
super(customerId, apiKey);
1816
}
1917

18+
public AppVerifyClient(String customerId, String apiKey, String restEndpoint) {
19+
super(customerId, apiKey, restEndpoint);
20+
}
21+
2022
public AppVerifyClient(String customerId, String apiKey, String restEndpoint, String source, String sdkVersionOrigin, String sdkVersionDependency) {
2123
super(customerId, apiKey, restEndpoint, source, sdkVersionOrigin, sdkVersionDependency);
2224
}
@@ -36,17 +38,4 @@ public AppVerifyClient(String customerId,
3638
super(customerId, apiKey, restEndpoint, connectTimeout, readTimeout, writeTimeout, proxy, proxyUsername, proxyPassword, source, sdkVersionOrigin, sdkVersionDependency);
3739
}
3840

39-
/**
40-
* Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification
41-
* flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
42-
* indicate a successful verification.
43-
* <p>
44-
* See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or
45-
* https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed
46-
* API documentation.
47-
*/
48-
public TelesignResponse status(String externalId, Map<String, String> params) throws IOException, GeneralSecurityException {
49-
50-
return this.get(String.format(APPVERIFY_STATUS_RESOURCE, externalId), params);
51-
}
5241
}

src/main/java/com/telesign/MessagingClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public MessagingClient(String customerId, String apiKey) {
1919
super(customerId, apiKey);
2020
}
2121

22+
public MessagingClient(String customerId, String apiKey, String restEndpoint) {
23+
super(customerId, apiKey, restEndpoint);
24+
}
25+
2226
public MessagingClient(String customerId, String apiKey, String restEndpoint, String source, String sdkVersionOrigin, String sdkVersionDependency) {
2327
super(customerId, apiKey, restEndpoint, source, sdkVersionOrigin, sdkVersionDependency);
2428
}

src/main/java/com/telesign/PhoneIdClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ public PhoneIdClient(String customerId, String apiKey) {
2727
super(customerId, apiKey);
2828
}
2929

30+
public PhoneIdClient(String customerId, String apiKey, String restEndpoint) {
31+
super(customerId, apiKey, restEndpoint);
32+
}
33+
3034
public PhoneIdClient(String customerId, String apiKey, String restEndpoint, String source, String sdkVersionOrigin, String sdkVersionDependency) {
3135
super(customerId, apiKey, restEndpoint, source, sdkVersionOrigin, sdkVersionDependency);
3236
}

src/main/java/com/telesign/RestClient.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
public class RestClient {
2828

29-
private static final String sdkVersion = BuildConfig.VERSION;
29+
private static final String sdkVersion = RestClient.class.getPackage().getImplementationVersion();
3030

3131
public static final String URL_FORM_ENCODED_CONTENT_TYPE = "application/x-www-form-urlencoded";
3232
public static final String JSON_CONTENT_TYPE = "application/json";
@@ -43,6 +43,11 @@ public RestClient(String customerId, String apiKey) {
4343
this(customerId, apiKey, null, null, null, null, null, null, null, null, null, null);
4444
}
4545

46+
public RestClient(String customerId, String apiKey, String restEndpoint) {
47+
48+
this(customerId, apiKey, restEndpoint, null, null, null, null, null, null, null, null, null);
49+
}
50+
4651
public RestClient(String customerId, String apiKey, String restEndpoint, String source, String sdkVersionOrigin, String sdkVersionDependency) {
4752

4853
this(customerId, apiKey, restEndpoint, null, null, null, null, null, null, source, sdkVersionOrigin, sdkVersionDependency);

src/main/java/com/telesign/ScoreClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public ScoreClient(String customerId, String apiKey, String restEndpoint, String
2121
super(customerId, apiKey, restEndpoint, source, sdkVersionOrigin, sdkVersionDependency);
2222
}
2323

24+
public ScoreClient(String customerId, String apiKey, String restEndpoint) {
25+
super(customerId, apiKey, restEndpoint);
26+
}
27+
2428
public ScoreClient(String customerId,
2529
String apiKey,
2630
String restEndpoint,

src/main/java/com/telesign/VoiceClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public VoiceClient(String customerId, String apiKey) {
1919
super(customerId, apiKey);
2020
}
2121

22+
public VoiceClient(String customerId, String apiKey, String restEndpoint) {
23+
super(customerId, apiKey, restEndpoint);
24+
}
25+
2226
public VoiceClient(String customerId, String apiKey, String restEndpoint, String source, String sdkVersionOrigin, String sdkVersionDependency) {
2327
super(customerId, apiKey, restEndpoint, source, sdkVersionOrigin, sdkVersionDependency);
2428
}

src/test/java/com/telesign/AppVerifyClientTest.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,6 @@ public void testAppVerifyClientConstructorFull() throws Exception {
5656
null);
5757
assertNotNull(client);
5858
}
59-
60-
public void testAppVerifyStatus() throws Exception {
61-
62-
this.mockServer.enqueue(new MockResponse().setBody("{}"));
63-
64-
AppVerifyClient client = new AppVerifyClient(this.customerId,
65-
this.apiKey,
66-
this.mockServer.url("").toString().replaceAll("/$", ""), null, null, null);
67-
68-
client.status("FakeExternalId", null);
69-
70-
RecordedRequest request = this.mockServer.takeRequest(1, TimeUnit.SECONDS);
71-
72-
assertEquals("method is not as expected", "GET", request.getMethod());
73-
assertEquals("path is not as expected", "/v1/mobile/verification/status/FakeExternalId", request.getPath());
74-
assertEquals("body is not as expected", "", request.getBody().readUtf8());
75-
assertEquals("Content-Type header is not as expected", "", request.getHeader("Content-Type"));
76-
assertEquals("x-ts-auth-method header is not as expected", "HMAC-SHA256",
77-
request.getHeader("x-ts-auth-method"));
78-
}
79-
80-
8159
}
8260

8361

0 commit comments

Comments
 (0)