Skip to content

Commit

Permalink
Merge pull request #288 from cryptape/release_0.7.1
Browse files Browse the repository at this point in the history
rc/v0.7.1
  • Loading branch information
BaojunCZ authored Jan 22, 2019
2 parents 6a002d9 + 26ebd4a commit 3a7079d
Show file tree
Hide file tree
Showing 422 changed files with 10,390 additions and 7,606 deletions.
55 changes: 22 additions & 33 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$rootDir/config.gradle"
apply plugin: 'com.sensorsdata.analytics.android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
compileSdkVersion appConfig.compileSdkVersion
defaultConfig {
applicationId "org.nervos.neuron"
applicationId "com.cryptape.cita_wallet"
targetSdkVersion appConfig.targetSdkVersion
minSdkVersion appConfig.minSdkVersion
versionCode appConfig.versionCode
versionName getVersionName(appConfig.isDebug)
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [InstallChannelValue: "cryptape"]
}
Expand Down Expand Up @@ -55,10 +55,10 @@ android {
output.assemble.dependsOn lintTask

if (variant.buildType.name == 'release') {
def apkName = "neuron_v${getVersionName(false)}_${variant.productFlavors[0].name}.apk"
def apkName = "cyton_v${getVersionName(false)}_${variant.productFlavors[0].name}.apk"
outputFileName = new File(apkName)
} else {
def apkName = "neuron_v${getVersionName(true)}.apk"
def apkName = "cyton_v${getVersionName(true)}.apk"
outputFileName = new File(apkName)
}
}
Expand All @@ -81,34 +81,21 @@ android {
preDexLibraries true
maxProcessCount 8
javaMaxHeapSize "3072m"
// Instead of setting the heap size for the DEX process, increase Gradle's
// heap size to enable dex-in-process. To learm more, read the next section.
// javaMaxHeapSize "2048m"
}
}

// 渠道配置
flavorDimensions "default"
productFlavors {
// yingyongbao { dimension "default" }
// _360 { dimension "default" }
// oppo { dimension "default" }
// baidu { dimension "default" }
// huawei { dimension "default" }
// xiaomi { dimension "default" }
// vivo { dimension "default" }
// wandoujia { dimension "default" }
cryptape { dimension "default" }
dev {
versionName = appConfig.devVersionName
resConfigs appConfig.devResConfigsEn, appConfig.devResConfigsDraw
}
}

productFlavors.all { flavor ->
if (!name.equals("dev")) {
if (name != "dev") {
flavor.manifestPlaceholders = [InstallChannelValue: name]
flavor.versionName = getVersionName(appConfig.isDebug)
flavor.multiDexEnabled = true
}
}
Expand All @@ -117,6 +104,11 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions{
jvmTarget = '1.8'
}

buildToolsVersion '28.0.3'
}

Expand All @@ -127,18 +119,16 @@ dependencies {
implementation 'com.android.support:design:27.1.1'
implementation 'io.reactivex:rxandroid:1.2.0'
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.7'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.0'
implementation 'org.bouncycastle:bcprov-jdk15on:1.56'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.7'
implementation 'org.bouncycastle:bcprov-jdk15on:1.60'
implementation 'org.abstractj.kalium:kalium:0.7.0'
implementation 'com.google.protobuf:protobuf-java:3.5.1'
implementation 'com.google.guava:guava:24.1-jre'
implementation 'cn.yipianfengye.android:zxing-library:2.2'
implementation 'com.snappydb:snappydb-lib:0.5.2'
implementation 'com.esotericsoftware.kryo:kryo:2.24.0'
implementation 'com.google.guava:guava:24.1-android'
implementation 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
implementation 'com.madgag.spongycastle:core:1.58.0.0'
implementation 'com.snappydb:snappydb-lib:0.5.2'
Expand All @@ -151,20 +141,19 @@ dependencies {
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'org.web3j:core:3.3.1-android'
implementation 'com.yanzhenjie:permission:2.0.0-rc5'
implementation 'io.reactivex:rxjava:1.2.4'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:2.1.2'
kapt 'com.github.bumptech.glide:compiler:4.8.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation files('libs/infura-3.3.1-android.jar')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation files('libs/abi-0.20.jar')
implementation files('libs/core-0.20.jar')
implementation files('libs/crypto-0.20.jar')
implementation files('libs/protobuf-0.20.jar')
implementation files('libs/utils-0.20.jar')
implementation files('libs/abi-0.20.3.jar')
implementation files('libs/core-0.20.3.jar')
implementation files('libs/crypto-0.20.3.jar')
implementation files('libs/protobuf-0.20.3.jar')
implementation files('libs/utils-0.20.3.jar')
}
repositories {
mavenCentral()
Expand Down
Binary file added app/libs/abi-0.20.3.jar
Binary file not shown.
Binary file removed app/libs/abi-0.20.jar
Binary file not shown.
Binary file added app/libs/core-0.20.3.jar
Binary file not shown.
Binary file removed app/libs/core-0.20.jar
Binary file not shown.
Binary file added app/libs/crypto-0.20.3.jar
Binary file not shown.
Binary file removed app/libs/crypto-0.20.jar
Binary file not shown.
Binary file added app/libs/protobuf-0.20.3.jar
Binary file not shown.
Binary file removed app/libs/protobuf-0.20.jar
Binary file not shown.
Binary file added app/libs/utils-0.20.3.jar
Binary file not shown.
Binary file removed app/libs/utils-0.20.jar
Binary file not shown.
15 changes: 9 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.nervos.neuron">
package="com.cryptape.cita_wallet">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand All @@ -20,7 +20,7 @@
<uses-permission android:name="android.permission.USE_FINGERPRINT" />

<application
android:name=".application.NeuronApplication"
android:name=".CytonApplication"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
Expand Down Expand Up @@ -54,7 +54,7 @@
android:theme="@style/AppTheme.NoActionBar" />

<activity
android:name=".activity.AddTokenActivity"
android:name=".activity.addtoken.AddTokenActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />

Expand All @@ -72,6 +72,10 @@
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />

<activity android:name=".activity.AdvanceSetupActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />

<activity
android:name=".activity.WalletManageActivity"
android:screenOrientation="portrait"
Expand Down Expand Up @@ -188,16 +192,15 @@

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="org.nervos.neuron.fileprovider"
android:authorities="com.cryptape.cita_wallet.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>

<service android:name=".application.ApplicationService" />
<service android:name=".service.intent.AppChainTransactionCheckService"
<service android:name=".service.intent.CITATransactionCheckService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="true"/>

Expand Down
27 changes: 27 additions & 0 deletions app/src/main/java/com/cryptape/cita_wallet/CytonApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.cryptape.cita_wallet;

import android.app.Application;

import com.uuzuche.lib_zxing.activity.ZXingLibrary;

import com.cryptape.cita_wallet.service.http.EthRpcService;
import com.cryptape.cita_wallet.util.crypto.AESCrypt;
import com.cryptape.cita_wallet.util.crypto.WalletEntity;
import com.cryptape.cita_wallet.util.db.SharePrefUtil;

/**
* Created by duanyytop on 2018/4/17
*/
public class CytonApplication extends Application {

@Override
public void onCreate() {
super.onCreate();

ZXingLibrary.initDisplayOpinion(this);
WalletEntity.initWalletMnemonic(this);
SharePrefUtil.init(this);
EthRpcService.init(this);
AESCrypt.init(this);
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.nervos.neuron.activity;
package com.cryptape.cita_wallet.activity;

import android.content.pm.PackageManager;
import android.widget.TextView;

import org.nervos.neuron.R;
import org.nervos.neuron.view.SettingButtonView;
import org.nervos.neuron.view.TitleBar;
import org.nervos.neuron.util.url.HttpUrls;
import com.cryptape.cita_wallet.R;
import com.cryptape.cita_wallet.constant.url.HttpUrls;
import com.cryptape.cita_wallet.view.SettingButtonView;
import com.cryptape.cita_wallet.view.TitleBar;

/**
* Created by 包俊 on 2018/7/30.
* Created by BaojunCZ on 2018/7/30.
*/
public class AboutUsActivity extends NBaseActivity {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.nervos.neuron.activity;
package com.cryptape.cita_wallet.activity;

import android.content.Intent;
import android.support.annotation.NonNull;
Expand All @@ -17,12 +17,12 @@
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;

import org.nervos.neuron.R;
import org.nervos.neuron.util.ConstantUtil;
import org.nervos.neuron.util.ScreenUtils;
import org.nervos.neuron.util.db.DBWalletUtil;
import org.nervos.neuron.util.db.SharePrefUtil;
import org.nervos.neuron.view.dialog.ProtocolDialog;
import com.cryptape.cita_wallet.R;
import com.cryptape.cita_wallet.constant.ConstantUtil;
import com.cryptape.cita_wallet.util.ScreenUtils;
import com.cryptape.cita_wallet.util.db.DBWalletUtil;
import com.cryptape.cita_wallet.util.db.SharePrefUtil;
import com.cryptape.cita_wallet.view.dialog.ProtocolDialog;

/**
* Created by duanyytop on 2018/5/17
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.nervos.neuron.activity;
package com.cryptape.cita_wallet.activity;

import android.content.Intent;
import android.os.Bundle;
Expand All @@ -25,13 +25,13 @@
import com.yanzhenjie.permission.AndPermission;
import com.yanzhenjie.permission.Permission;

import org.nervos.neuron.R;
import org.nervos.neuron.util.qrcode.CodeUtils;
import org.nervos.neuron.util.ScreenUtils;
import org.nervos.neuron.util.db.DBHistoryUtil;
import org.nervos.neuron.util.permission.PermissionUtil;
import org.nervos.neuron.util.permission.RuntimeRationale;
import org.nervos.neuron.util.web.UrlUtil;
import com.cryptape.cita_wallet.R;
import com.cryptape.cita_wallet.util.qrcode.CodeUtils;
import com.cryptape.cita_wallet.util.ScreenUtils;
import com.cryptape.cita_wallet.util.db.DBHistoryUtil;
import com.cryptape.cita_wallet.util.permission.PermissionUtil;
import com.cryptape.cita_wallet.util.permission.RuntimeRationale;
import com.cryptape.cita_wallet.util.web.UrlUtil;

import java.util.ArrayList;
import java.util.List;
Expand Down
Loading

0 comments on commit 3a7079d

Please sign in to comment.