Skip to content

Commit

Permalink
update protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
paper committed Jul 4, 2024
1 parent 3feb22f commit 17ad486
Show file tree
Hide file tree
Showing 11 changed files with 322 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

263 changes: 263 additions & 0 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.12 (June 03, 2024)


## 1.0.10 (February 17, 2023)


Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {

defaultConfig {
applicationId "io.arcblock.did.did_wallet_sdk_android"
minSdk 21
targetSdk 31
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"

Expand Down
4 changes: 2 additions & 2 deletions config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ext {
def room_version = '1.1.1'
def work_version = '1.0.0'
android = [
compileSdkVersion: 31,
compileSdkVersion: 33,
buildToolsVersion: "30.0.2",
minSdkVersion: 21,
minSdkVersion: 24,
targetSdkVersion: 30,
versionCode : 1,
versionName : "1.0.0"
Expand Down
3 changes: 3 additions & 0 deletions protobuf/src/main/proto/state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ message StakeState {
// Who can slash assets from this stake
repeated string slashers = 11;

// Added in v1.18.222
string nonce = 12;

StateContext context = 30;
google.protobuf.Any data = 50;
}
Expand Down
1 change: 1 addition & 0 deletions protobuf/src/main/proto/trace-type.proto
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ message IndexedStakeState {
repeated TokenInfo revoked_tokens = 11;
repeated string revoked_assets = 12;
repeated string slashers = 13;
string nonce = 14;
google.protobuf.Any data = 50;
}

Expand Down
6 changes: 5 additions & 1 deletion protobuf/src/main/proto/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ message CreateFactoryTx {
message StakeTx {
string address = 1;

// used to create stake address = createDid(tx.sender, itx.to)
// used to create stake address = createDid(tx.sender, itx.to, nonce)
string receiver = 2;

// Can stake any combination of tokens + assets
Expand All @@ -329,6 +329,10 @@ message StakeTx {
// Who can slash assets from this stake
repeated string slashers = 7;

// Added in v1.18.222
// extra nonce used to calculate stake address
string nonce = 8;

// ocap won't touch this field. Only app shall handle it.
google.protobuf.Any data = 50;
}
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.11
1.0.12
16 changes: 16 additions & 0 deletions wallet-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,27 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}

packagingOptions {
exclude 'META-INF/rxjava.properties'
exclude 'lib/x86/*.so'
exclude 'lib/x86_64/*.so'
}

configurations.all {
c -> c.resolutionStrategy.eachDependency {
DependencyResolveDetails dependency ->
if (dependency.requested.group == 'org.bouncycastle') {
dependency.useTarget 'org.bouncycastle:bcprov-jdk15to18:1.69'
} else if (dependency.requested.group == "com.google.protobuf") {
dependency.useTarget 'com.google.protobuf:protobuf-java:3.6.1'
}
}
}
}

dependencies {
Expand Down

0 comments on commit 17ad486

Please sign in to comment.