Skip to content

Commit

Permalink
Squash merge ttop-sdk/os_external into 2.3.1-release
Browse files Browse the repository at this point in the history
  • Loading branch information
CaballoMa-Tiktok committed Oct 24, 2024
1 parent f4a5ba9 commit 3ea801c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 57 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ repositories {
5. Add the following implementation statement to the `dependencies{}` section:
```gradle
dependencies {
implementation 'com.tiktok.open.sdk:tiktok-open-sdk-core:2.3.0'
implementation 'com.tiktok.open.sdk:tiktok-open-sdk-auth:2.3.0' // to use authorization api
implementation 'com.tiktok.open.sdk:tiktok-open-sdk-share:2.3.0' // to use share api
implementation 'com.tiktok.open.sdk:tiktok-open-sdk-core:2.2.0'
implementation 'com.tiktok.open.sdk:tiktok-open-sdk-auth:2.2.0' // to use authorization api
implementation 'com.tiktok.open.sdk:tiktok-open-sdk-share:2.2.0' // to use share api
}
```

Expand Down
2 changes: 1 addition & 1 deletion demo-auth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
versionCode 1
versionName "1.0"
buildConfigField "String", "CLIENT_KEY", '"awp9h9mdmo510fct"'
buildConfigField "String", "REDIRECT_URL", '"demoapp://oauthresponse"'
buildConfigField "String", "REDIRECT_URL", '"https://open-platform.tiktokapis.com/callback"'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
9 changes: 7 additions & 2 deletions demo-auth/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="demoapp" android:host="oauthresponse"/>

<data
android:scheme="https"
android:host="open-platform.tiktokapis.com"
android:pathPrefix="/callback" />
</intent-filter>
</activity>
</application>
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ android.useAndroidX=true
android.enableJetifier=true

ARTIFACT_GROUP = com.tiktok.open.sdk
ARTIFACT_VERSION = 2.3.0
ARTIFACT_VERSION = 2.3.1


# core module
CORE_ARTIFACT_ID = tiktok-open-sdk-core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,53 +105,3 @@ internal object OneLinkConstants {
const val TIKTOK_T_PLAYSTORE_ENDPOINT = "/BAuo/4az84vxo"
const val TIKTOK_M_PLAYSTORE_ENDPOINT = "/bIdt/ikk538qj"
}

internal object ShareErrorCodes {
const val SUCCESS = 0
const val UNKNOWN = -1

/**
* App certificate does not match configurations
* */

const val CONFIGURATION_ERR = 10011
/**
* Illegal authorization scope.
* */
const val SCOPE_ERR = 10004

/**
* Params parsing error.
* */
const val PARAMETER_PARSE_ERR = 20002

/**
* "TikTok has no album permissions."
* */
const val GALLERY_PERMISSION_ERR = 20005

/**
* TikTok Network error
* */
const val NETWORK_ERR = 20006

/**
* Photo doesn't meet requirements.
* */
const val INVALID_PHOTO_ERR = 20008

/**
* Processing photo resources failed.
* */
const val PHOTO_RESOURCE_ERR = 20010

/**
* Video format is not supported.
* */
const val INVALID_VIDEO_TYPE_ERR = 20012

/**
* Users store shared content for draft or user accounts are not allowed to post videos
* */
const val SAVE_TO_DRAFT_ERR = 20016
}

0 comments on commit 3ea801c

Please sign in to comment.