Skip to content

Commit b8e74fd

Browse files
author
wuqiong
committed
add banner size types
1 parent 3ae990e commit b8e74fd

12 files changed

Lines changed: 19 additions & 14 deletions

File tree

behavior/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88
minSdkVersion MIN_SDK_VERSION
99
targetSdkVersion TARGET_SDK_VERSION
1010
versionCode 1
11-
versionName "0.0.18"
11+
versionName SDK_VERSION_NAME
1212

1313
buildConfigField 'String', 'ACTION_RPC_URL', "\"http://test.ttcnet.io/\""
1414
buildConfigField 'String', 'TOKEN_RPC_URL', "\"http://test.ttcnet.io/\""

behavior/src/main/java/com/ttc/behavior/ui/TTCAdSize.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ package com.ttc.behavior.ui
44
* Created by lwq on 2019/1/2.
55
*/
66
object TTCAdSize {
7-
val BANNER = 1 //320*50
8-
val LARGE_BANNER = 2; //320x100
9-
val FULL_BANNER = 3; //468x60
10-
val SMART_BANNER = 4; //Screen width x 32|50|90
7+
const val BANNER = 1 //320*50
8+
const val LARGE_BANNER = 2; //320x100
9+
const val MEDIUM_RECTANGLE = 3; //300x250
10+
const val LEADER_BOARD = 4; //728x90
11+
const val FULL_BANNER = 5; //468x60
12+
const val SMART_BANNER = 6; //Screen width x 32|50|90
1113
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="bind">Bind</string>
3+
<string name="bind">Kết nối</string>
44
<string name="ttc_wallet">TTC Connect</string>
55
<string name="loading">Đang tải…</string>
66
</resources>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="bind">Bind</string>
3+
<string name="bind">Connect</string>
44
<string name="ttc_wallet">TTC Connect</string>
55
<string name="loading">Loading…</string>
66
</resources>

behivorDemo/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
minSdkVersion MIN_SDK_VERSION
1010
targetSdkVersion TARGET_SDK_VERSION
1111
versionCode 1
12-
versionName "0.0.18"
12+
versionName SDK_VERSION_NAME
1313
multiDexEnabled true
1414
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1515
}
@@ -75,7 +75,7 @@ dependencies {
7575
//aar
7676
implementation 'org.web3j:core:3.3.1-android'
7777
implementation 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-5'
78-
implementation 'com.google.android.gms:play-services-ads:17.1.2'
79-
implementation(name:'ttc_sdk_biz_0.0.18', ext:'aar')
80-
implementation(name:'ttc_sdk_0.0.18', ext:'aar')
78+
implementation 'com.google.android.gms:play-services-ads:17.1.3'
79+
implementation(name:'ttc_sdk_biz_0.0.19', ext:'aar')
80+
implementation(name:'ttc_sdk_0.0.19', ext:'aar')
8181
}
-106 KB
Binary file not shown.
106 KB
Binary file not shown.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.3.0'
10+
classpath 'com.android.tools.build:gradle:3.3.1'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212

1313
// NOTE: Do not place your application dependencies here; they belong

doc/TTC_SDK_en_android.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Basics
44

5-
Download [SDK](https://github.com/TTCECO/TTCSDK_Android)
5+
Download [SDK](https://github.com/TTCECO/TTCSDK_Android/releases)
66

77
## Integration
88
Put sdk in libs directory, add dependencies in build.gradle and replace “ttc\_sdk\_xxx” and "ttc\_sdk\_biz\_xxx" with the real name;
@@ -119,6 +119,7 @@ TTCAgent.getWalletBalance(IManager.BalanceCallback callback)
119119

120120
## Upload user behaviors
121121
The ___actionType__ must be greater than 100. The ___extra___ must be a json structure string.
122+
The value and meaning of action type,
122123

123124
```
124125
TTCAgent.onEvent(int actionType, String extra)

0 commit comments

Comments
 (0)