Skip to content

Commit c3dc4dd

Browse files
author
xumin@juzix.io
committed
首次提交
1 parent 3d18886 commit c3dc4dd

57 files changed

Lines changed: 1851 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

.idea/gradle.xml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/CMakeLists.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# For more information about using CMake with Android Studio, read the
2+
# documentation: https://d.android.com/studio/projects/add-native-code.html
3+
4+
# Sets the minimum version of CMake required to build the native library.
5+
6+
cmake_minimum_required(VERSION 3.4.1)
7+
8+
# Creates and names a library, sets it as either STATIC
9+
# or SHARED, and provides the relative paths to its source code.
10+
# You can define multiple libraries, and CMake builds them for you.
11+
# Gradle automatically packages shared libraries with your APK.
12+
13+
add_library( # Sets the name of the library.
14+
native-lib
15+
16+
# Sets the library as a shared library.
17+
SHARED
18+
19+
# Provides a relative path to your source file(s).
20+
src/main/cpp/native-lib.cpp )
21+
22+
# Searches for a specified prebuilt library and stores the path as a
23+
# variable. Because CMake includes system libraries in the search path by
24+
# default, you only need to specify the name of the public NDK library
25+
# you want to add. CMake verifies that the library exists before
26+
# completing its build.
27+
28+
find_library( # Sets the name of the path variable.
29+
log-lib
30+
31+
# Specifies the name of the NDK library that
32+
# you want CMake to locate.
33+
log )
34+
35+
# Specifies libraries CMake should link to your target library. You
36+
# can link multiple libraries, such as libraries you define in this
37+
# build script, prebuilt third-party libraries, or system libraries.
38+
39+
target_link_libraries( # Specifies the target library.
40+
native-lib
41+
42+
# Links the target library to the log library
43+
# included in the NDK.
44+
${log-lib} )

app/build.gradle

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 26
5+
defaultConfig {
6+
applicationId "juzix.com.juwallet"
7+
minSdkVersion 16
8+
targetSdkVersion 26
9+
versionCode 1
10+
multiDexEnabled true
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
externalNativeBuild {
14+
cmake {
15+
cppFlags "-std=c++11"
16+
}
17+
}
18+
}
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
externalNativeBuild {
26+
cmake {
27+
path "CMakeLists.txt"
28+
}
29+
}
30+
31+
dexOptions {
32+
javaMaxHeapSize "6g"
33+
}
34+
lintOptions {
35+
checkReleaseBuilds false
36+
abortOnError false
37+
}
38+
}
39+
40+
dependencies {
41+
implementation fileTree(dir: 'libs', include: ['*.jar'])
42+
implementation 'com.android.support:appcompat-v7:26.1.0'
43+
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
44+
testImplementation 'junit:junit:4.12'
45+
androidTestImplementation 'com.android.support.test:runner:1.0.1'
46+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
47+
implementation 'org.web3j:core:3.1.1-android'
48+
compile 'com.google.zxing:core:3.3.0'
49+
compile 'cn.bingoogolapple:bga-qrcodecore:1.1.7'
50+
compile 'cn.bingoogolapple:bga-zxing:1.1.7@aar'
51+
compile 'com.yanzhenjie:permission:1.0.8'
52+
compile 'com.android.support:multidex:1.0.1'
53+
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
54+
compile 'io.reactivex.rxjava2:rxjava:2.1.7'
55+
compile 'de.greenrobot:eventbus:2.4.0'
56+
compile 'com.zhouyou:rxeasyhttp:2.0.5'
57+
}

app/debug/app-debug.apk

7.06 MB
Binary file not shown.

app/debug/output.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1},"path":"app-debug.apk","properties":{"packageId":"juzix.com.juwallet","split":"","minSdkVersion":"16"}}]

0 commit comments

Comments
 (0)