Skip to content

Commit 779f816

Browse files
committed
2018-07-30 update.
1 parent 4aaeb51 commit 779f816

39 files changed

+1454
-0
lines changed

GoFIT_SDK_Demo/.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.iml
2+
.gradle
3+
./local.properties
4+
./.idea/libraries
5+
./.idea/modules.xml
6+
./.idea/workspace.xml
7+
./.idea/misc.xml
8+
./.idea/caches/*
9+
.DS_Store
10+
./build
11+
./captures
12+
.externalNativeBuild

GoFIT_SDK_Demo/app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

GoFIT_SDK_Demo/app/build.gradle

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 27
5+
defaultConfig {
6+
applicationId "com.goyourlife.gofit_demo"
7+
minSdkVersion 18
8+
targetSdkVersion 27
9+
versionCode 1
10+
versionName "1.0"
11+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
}
20+
21+
allprojects {
22+
repositories {
23+
flatDir {
24+
dirs 'libs'
25+
}
26+
}
27+
}
28+
29+
dependencies {
30+
implementation fileTree(dir: 'libs', include: ['*.jar'])
31+
implementation 'com.android.support:appcompat-v7:27.1.1'
32+
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
33+
testImplementation 'junit:junit:4.12'
34+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
35+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
36+
37+
implementation (name:'GoFIT_SDK-release', ext:'aar')
38+
}

GoFIT_SDK_Demo/app/libs/LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# GoFIT SDK (Library)

GoFIT_SDK_Demo/app/libs/NOTICE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# GoFIT SDK (Library)

GoFIT_SDK_Demo/app/libs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
請下載 GoFIT_SDK-release.aar 並將之放在此目錄內。

GoFIT_SDK_Demo/app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.goyourlife.gofit_demo;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumented test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.goyourlife.gofit_demo", appContext.getPackageName());
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.goyourlife.gofit_demo">
4+
5+
<uses-permission android:name="android.permission.BLUETOOTH" />
6+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
7+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
8+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
9+
<uses-permission android:name="android.permission.INTERNET" />
10+
11+
<uses-feature
12+
android:name="android.hardware.bluetooth_le"
13+
android:required="true" />
14+
<uses-feature
15+
android:name="android.hardware.location"
16+
android:required="false" />
17+
<uses-feature
18+
android:name="android.hardware.location.gps"
19+
android:required="false" />
20+
21+
<application
22+
android:allowBackup="true"
23+
android:icon="@mipmap/ic_launcher"
24+
android:label="@string/app_name"
25+
android:roundIcon="@mipmap/ic_launcher_round"
26+
android:supportsRtl="true"
27+
android:theme="@style/AppBaseTheme">
28+
<activity android:name=".MainActivity">
29+
<intent-filter>
30+
<action android:name="android.intent.action.MAIN" />
31+
32+
<category android:name="android.intent.category.LAUNCHER" />
33+
</intent-filter>
34+
</activity>
35+
36+
<service
37+
android:name="com.golife.service.SyncService"
38+
android:enabled="true" />
39+
40+
<service
41+
android:name="com.golife.service.dfu.v20160706.DfuService"
42+
android:enabled="true" />
43+
44+
</application>
45+
46+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
請將您收到的授權檔案 `client_cert.crt` 放在本目錄下。
2+
3+
同時,如果您有收到 firmware 的 OTA 更新 image (*.hex 檔案),也是放置於本目錄下。

0 commit comments

Comments
 (0)