-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove material (1.5MB) * remove unused imports * upgrade coroutines * Upgrade Kotlin from 1.5.x to 1.6.x * correct kotlin version * remove exloplayer extension-ima * remove exloplayer exoplayer-dash * upgrade libs * migrate android gradle plugin from 7.0.4 to 7.2.1 * Remove core-ktx(0.1MB) * remove unused libraries * remove unused libraries * Fix errors * Fix errors * Fix the build type for a testing lib * Remove kotlin-stdlib-jdk8 * Remove old codes * Replace jackson-binding(0.7mb) with gson(0.08mb) * Remove appcompat
- Loading branch information
1 parent
5984db7
commit 9bfcd4c
Showing
23 changed files
with
92 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package com.pixlee.pixleeandroidsdk | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper | ||
import com.google.gson.Gson | ||
import com.google.gson.JsonObject | ||
import com.pixlee.pixleesdk.network.HMAC | ||
import org.json.JSONException | ||
import org.junit.Assert | ||
|
@@ -15,14 +16,15 @@ class HMACTest { | |
@Test | ||
@Throws(JSONException::class, InvalidKeyException::class, NoSuchAlgorithmException::class) | ||
fun `test-HMAC-SHA1`() { | ||
val text: String = ObjectMapper().createObjectNode().apply{ | ||
this.put("album_id", 12345) | ||
this.put("title", "Testing Photo Upload") | ||
this.put("approved", true) | ||
this.put("email", "[email protected]") | ||
this.put("username", "Submitter Person") | ||
this.put("photo_uri", "https://example.com/test.jpg") | ||
}.toString().replace("\\/", "/") | ||
val text: String = Gson().toJson(JsonObject().apply { | ||
addProperty("album_id", 12345) | ||
addProperty("title", "Testing Photo Upload") | ||
addProperty("approved", true) | ||
addProperty("email", "[email protected]") | ||
addProperty("username", "Submitter Person") | ||
addProperty("photo_uri", "https://example.com/test.jpg") | ||
}).replace("\\/", "/") | ||
|
||
val test = HMAC.computeHmac(text, "ABCDEFG") | ||
val targetResult = "epBvDlHbQho/rNDdQVJowWMtGsg=" | ||
Assert.assertEquals(targetResult, test) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package com.pixlee.pixleesdk | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper | ||
import com.google.gson.Gson | ||
import com.google.gson.JsonObject | ||
import com.pixlee.pixleesdk.network.HMAC | ||
import org.json.JSONException | ||
import org.junit.Assert | ||
|
@@ -15,16 +16,17 @@ class HMACTest { | |
@Test | ||
@Throws(JSONException::class, InvalidKeyException::class, NoSuchAlgorithmException::class) | ||
fun testHMAC() { | ||
val text: String = ObjectMapper().createObjectNode().apply{ | ||
this.put("album_id", 12345) | ||
this.put("title", "Testing Photo Upload") | ||
this.put("approved", true) | ||
this.put("email", "[email protected]") | ||
this.put("username", "Submitter Person") | ||
this.put("photo_uri", "https://example.com/test.jpg") | ||
}.toString().replace("\\/", "/") | ||
val test = HMAC.computeHmac(text, "ABCDEFG") | ||
val targetResult = "epBvDlHbQho/rNDdQVJowWMtGsg=" | ||
val text: String = Gson().toJson(JsonObject().apply { | ||
addProperty("album_id", 12345) | ||
addProperty("title", "Testing Photo Upload") | ||
addProperty("approved", true) | ||
addProperty("email", "[email protected]") | ||
addProperty("username", "Submitter Person") | ||
addProperty("photo_uri", "https://example.com/test.jpg") | ||
}).replace("\\/", "/") | ||
|
||
val test = HMAC.computeHmac(text, "ABCDEFG") | ||
val targetResult = "epBvDlHbQho/rNDdQVJowWMtGsg=" | ||
Assert.assertEquals(targetResult, test) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 0 additions & 102 deletions
102
pixleesdk/src/main/java/com/pixlee/pixleesdk/network/TLSSocketFactory.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.