Skip to content

Commit

Permalink
Merge pull request #169 from ostdotcom/develop
Browse files Browse the repository at this point in the history
Preparing for Release v2.3.8
  • Loading branch information
Rachin Kapoor authored Jan 23, 2020
2 parents a442c99 + 465d270 commit c2ddda8
Show file tree
Hide file tree
Showing 46 changed files with 2,398 additions and 78 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
bin/
gen/
out/
.cxx/
ostsdk/src/main/jniLibs/
app/src/obj/
ostsdk/src/obj/

# Gradle files
.gradle/
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# OST Wallet SDK Changelog

## Version 2.3.8
### Changes:
* Reduced recovery key generation time substantially by leveraging on NDK.

### Bug Fix:
* In OstWalletSDK UI workflows progress bar crashes in background.

## Version 2.3.7
### Bug Fix:
* Inaccurate error is thrown when application runs out of memory during recover device workflow.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ compileOptions {

```
dependencies {
implementation 'com.ost:ost-wallet-sdk-android:2.3.7'
implementation 'com.ost:ost-wallet-sdk-android:2.3.8'
...
...
...
Expand Down
6 changes: 3 additions & 3 deletions Samples/customloader/src/OstMockLoaderFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;

import com.ost.ostwallet.R;
import com.ost.walletsdk.ui.loader.OstLoaderFragment;
Expand Down
6 changes: 6 additions & 0 deletions Samples/customloader/src/OstMockLoaderManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public OstLoaderFragment getLoader(OstWorkflowContext.WORKFLOW_TYPE workflowType

@Override
public boolean waitForFinalization(OstWorkflowContext.WORKFLOW_TYPE workflowType) {
if (OstWorkflowContext.WORKFLOW_TYPE.ACTIVATE_USER.equals(workflowType)) {
return false;
}
if (OstWorkflowContext.WORKFLOW_TYPE.EXECUTE_TRANSACTION.equals(workflowType)) {
return false;
}
return true;
}
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'io.fabric.tools:gradle:1.+'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
7 changes: 7 additions & 0 deletions documentation/OstWalletUI.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ try {
OstWalletUI.setThemeConfig(themeConfig)
```

### Get Theme Config
Get currently applied theme config from sdk.

```java
OstWalletUI.getThemeConfig()
```

### Set Content Config

Content for OstWalletUI can be initialized by calling `setContentConfig` API.
Expand Down
33 changes: 32 additions & 1 deletion documentation/ThemeConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ The following UI components properties supported by navigation bar:
| ---------------------- | :-----------------------------: |
| bar logo | nav_bar_logo_image.asset_name |
| bar tint color | navigation_bar.tint_color |
| bar title color | navigation_bar_header.tint_color |
| close icon tint color | icons.close.tint_color |
| close icon tint color | icons.back.tint_color |

Expand All @@ -132,6 +133,36 @@ The following UI components properties supported by navigation bar:
| empty_color | hex value(String) |
| filled_color | hex value(String) |

### Cell Separator

The following UI components properties supported by cell separator:

| Configuration Keys | Type |
| -------------------- | :---------------- |
| color | hex value(String) |

### Link

The following UI components properties supported by link:

| Configuration Keys | Type |
| -------------------- | :---------------- |
| size | number |
| color | hex value(String) |
| system_font_weight | string |
| alignment | string |

### status

The following UI components properties supported by status:

| Configuration Keys | Type |
| -------------------- | :---------------- |
| size | number |
| color | hex value(String) |
| system_font_weight | string |
| alignment | string |

## UI Components

![copy-framework-file](images/NavBar.png)
Expand All @@ -140,4 +171,4 @@ The following UI components properties supported by navigation bar:

![copy-framework-file](images/Card.png)

![copy-framework-file](images/TextField.png)
![copy-framework-file](images/TextField.png)
Binary file added documentation/images/TextField.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 2 additions & 12 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
#
# Copyright 2019 OST.com Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#

#Mon Feb 25 12:36:41 IST 2019
#Tue Dec 17 03:00:32 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
32 changes: 32 additions & 0 deletions ostsdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.apache.tools.ant.taskdefs.condition.Os

/*
* Copyright 2019 OST.com Inc
*
Expand Down Expand Up @@ -57,6 +59,36 @@ android {
lintOptions {
abortOnError false
}

task ndkBuild(type: Exec) {
def rootDir = project.rootDir
def localProperties = new File(rootDir, "local.properties")
Properties properties = new Properties()
localProperties.withInputStream { instr ->
properties.load(instr)
}
def ndkDir = properties.getProperty('ndk.dir')

if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine ndkDir + '\\ndk-build.cmd',
'NDK_LIBS_OUT=main/jniLibs',
'NDK_PROJECT_PATH=' + rootDir + '\\ostsdk\\src',
'APP_BUILD_SCRIPT=jni/Android.mk',
'-C',
file('src').absolutePath
} else {
commandLine ndkDir + '/ndk-build',
'NDK_LIBS_OUT=main/jniLibs',
'NDK_PROJECT_PATH=' + rootDir + '/ostsdk/src',
'APP_BUILD_SCRIPT=jni/Android.mk',
'-C',
file('src').absolutePath
}
}

tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuild
}
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions ostsdk/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
# org.gradle.parallel=true

#Increase version when publishing.
VERSION_NAME=2.3.7
VERSION_NAME=2.3.8
#Increase version code when publishing.
VERSION_CODE=49
VERSION_CODE=53

#Everything else.
GROUP=com.ost
Expand Down
16 changes: 16 additions & 0 deletions ostsdk/src/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

LOCAL_MODULE := libscrypt
LOCAL_MODULE_FILENAME := libscrypt
LOCAL_PATH := $(NDK_PROJECT_PATH)

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/scrypt/c/*.c)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/scrypt/include/

LOCAL_CFLAGS := -std=c99 -Wall -O2

LOCAL_LDFLAGS := -shared
LOCAL_CFLAGS += -DHAVE_CONFIG_H -I $(LOCAL_PATH)/scrypt/include
CC := arm-linux-androideabi-gcc
LOCAL_CFLAGS += --sysroot=$(SYSROOT)

include $(BUILD_SHARED_LIBRARY)
48 changes: 35 additions & 13 deletions ostsdk/src/main/assets/ost-theme-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

"nav_bar_logo_image": {
"asset_name": "ost_nav_bar_logo"
},
Expand Down Expand Up @@ -68,6 +67,28 @@
"system_font_weight": "medium"
},

"navigation_bar": {
"tint_color": "#ffffff"
},

"navigation_bar_header": {
"tint_color": "#438bad"
},

"icons": {
"close": {
"tint_color": "#438bad"
},
"back":{
"tint_color": "#438bad"
}
},

"pin_input": {
"empty_color": "#c7c7cc",
"filled_color": "#438bad"
},

"edit_text": {
"size": 15,
"color": "#101010",
Expand All @@ -77,25 +98,26 @@
"placeholder": {
"size": 15,
"color": "#888888",
"alignment": "left",
"system_font_weight": "regular"
}
},

"navigation_bar": {
"tint_color": "#ffffff"
"cell_separator": {
"color": "#DBDBDB"
},

"icons": {
"close": {
"tint_color": "#438bad"
},
"back":{
"tint_color": "#438bad"
}
"link": {
"size": 15,
"color": "#007aff",
"system_font_weight": "medium",
"alignment": "left"
},

"pin_input": {
"empty_color": "#c7c7cc",
"filled_color": "#438bad"
"status": {
"size": 15,
"color": "#0F9D58",
"system_font_weight": "regular",
"alignment": "left"
}
}
Loading

0 comments on commit c2ddda8

Please sign in to comment.