Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ReyunSecureSdk
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daiwenjie
ReyunSecureSdk
Commits
b1e36fde
Commit
b1e36fde
authored
Mar 31, 2021
by
1256748979@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
d041c3a7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
7 deletions
+30
-7
vcs.xml
.idea/vcs.xml
+7
-0
build.gradle
app/build.gradle
+2
-1
CMakeLists.txt
wandun/src/main/cpp/CMakeLists.txt
+5
-3
core.cpp
wandun/src/main/cpp/core.cpp
+4
-0
WdCallback.java
wandun/src/main/java/com/reyun/wandun/WdCallback.java
+1
-1
WdMain.java
wandun/src/main/java/com/reyun/wandun/WdMain.java
+11
-2
No files found.
.idea/vcs.xml
0 → 100644
View file @
b1e36fde
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
app/build.gradle
View file @
b1e36fde
...
@@ -40,11 +40,11 @@ android {
...
@@ -40,11 +40,11 @@ android {
}
}
dependencies
{
dependencies
{
implementation
'androidx.appcompat:appcompat:1.1.0'
implementation
'androidx.appcompat:appcompat:1.1.0'
implementation
'com.google.android.material:material:1.1.0'
implementation
'com.google.android.material:material:1.1.0'
implementation
'androidx.constraintlayout:constraintlayout:1.1.3'
implementation
'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation
'junit:junit:4.+'
testImplementation
'junit:junit:4.+'
androidTestImplementation
'androidx.test.ext:junit:1.1.1'
androidTestImplementation
'androidx.test.ext:junit:1.1.1'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.2.0'
implementation
project
(
':wandun'
)
}
}
\ No newline at end of file
wandun/src/main/cpp/CMakeLists.txt
View file @
b1e36fde
cmake_minimum_required
(
3.10.2
)
cmake_minimum_required
(
VERSION
3.10.2
)
project
(
Wandun
)
project
(
Wandun
)
...
@@ -6,4 +6,6 @@ include_directories(${CMAKE_SOURCE_DIR}/include)
...
@@ -6,4 +6,6 @@ include_directories(${CMAKE_SOURCE_DIR}/include)
add_library
(
wdun
add_library
(
wdun
SHARED
SHARED
)
core.cpp
)
\ No newline at end of file
target_link_libraries
(
wdun log
)
\ No newline at end of file
wandun/src/main/cpp/core.cpp
0 → 100644
View file @
b1e36fde
//
// Created by 12567 on 2021/3/31.
//
wandun/src/main/java/com/reyun/wandun/Wd
Id
Callback.java
→
wandun/src/main/java/com/reyun/wandun/WdCallback.java
View file @
b1e36fde
package
com
.
reyun
.
wandun
;
package
com
.
reyun
.
wandun
;
public
interface
Wd
Id
Callback
{
public
interface
WdCallback
{
String
onWdId
(
String
wdId
);
String
onWdId
(
String
wdId
);
}
}
wandun/src/main/java/com/reyun/wandun/WdMain.java
View file @
b1e36fde
...
@@ -4,7 +4,7 @@ import android.content.Context;
...
@@ -4,7 +4,7 @@ import android.content.Context;
public
class
WdMain
{
public
class
WdMain
{
// 用户申请sdk后获得的认证码,调用sdk接口时需传入
// 用户申请sdk后获得的认证码,调用sdk接口时需传入
private
String
mA
ccess
Key
;
private
String
mA
pi
Key
;
//生成的唯一id
//生成的唯一id
private
String
mWdId
;
private
String
mWdId
;
...
@@ -13,7 +13,16 @@ public class WdMain {
...
@@ -13,7 +13,16 @@ public class WdMain {
private
Context
mContext
;
private
Context
mContext
;
//初始化方法,
//初始化方法,
public
static
void
init
(
Context
context
,
String
accessKey
,
WdIdCallback
cb
)
{
public
static
void
init
(
Context
context
,
String
apiKey
)
{
//load native lib
System
.
loadLibrary
(
"wdun"
);
//todo 监控传感器数据变化
//todo 监控手机信号强度变化
}
//获取wdId
public
static
void
getWdId
(
WdCallback
cb
)
{
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment