-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4f5aeb
commit 393878e
Showing
14 changed files
with
196 additions
and
223 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
app/src/androidTest/java/com/today/step/ExampleInstrumentedTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/src/main/java/com/today/step/UploadSportStepNetworkImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.today.step; | ||
|
||
import android.app.Application; | ||
|
||
import com.today.step.lib.Logger; | ||
import com.today.step.lib.UploadSportStepNetwork; | ||
import com.today.step.lib.UploadSportStepResponse; | ||
|
||
/** | ||
* Created by jiahongfei on 2017/6/26. | ||
*/ | ||
|
||
public class UploadSportStepNetworkImpl extends UploadSportStepNetwork { | ||
|
||
public UploadSportStepNetworkImpl(Application application) { | ||
super(application); | ||
} | ||
|
||
@Override | ||
public void postSportStepNum(String sportStepJson, UploadSportStepResponse uploadSportStepResponse) { | ||
Logger.e("","request : " + sportStepJson); | ||
uploadSportStepResponse.onSuccess("上传成功"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// ISportStepInterface.aidl | ||
package com.today.step.lib; | ||
|
||
// Declare any non-default types here with import statements | ||
|
||
interface ISportStepInterface { | ||
/** | ||
* 获取当前时间运动步数 | ||
*/ | ||
int getCurrTimeSportStep(); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
todaystepcounterlib/src/androidTest/java/com/today/step/lib/ExampleInstrumentedTest.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
todaystepcounterlib/src/main/aidl/com/today/step/lib/ISportStepInterface.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// ISportStepInterface.aidl | ||
package com.today.step.lib; | ||
|
||
interface ISportStepInterface { | ||
/** | ||
* 获取当前时间运动步数 | ||
*/ | ||
int getCurrTimeSportStep(); | ||
|
||
} |
14 changes: 0 additions & 14 deletions
14
todaystepcounterlib/src/main/java/com/today/step/lib/BaseConstantDef.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
todaystepcounterlib/src/main/java/com/today/step/lib/UploadSportStepNetwork.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.today.step.lib; | ||
|
||
import android.app.Application; | ||
|
||
/** | ||
* Created by jiahongfei on 2017/6/26. | ||
*/ | ||
|
||
public class UploadSportStepNetwork { | ||
|
||
public UploadSportStepNetwork(Application application){ | ||
|
||
} | ||
|
||
public void postSportStepNum(String sportStepJson,UploadSportStepResponse uploadSportStepResponse){ | ||
try { | ||
throw new Exception("如果想上传步数需要继承这个方法"); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
todaystepcounterlib/src/main/java/com/today/step/lib/UploadSportStepResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.today.step.lib; | ||
|
||
/** | ||
* Created by jiahongfei on 2017/6/26. | ||
*/ | ||
|
||
public interface UploadSportStepResponse { | ||
|
||
void onSuccess(String response); | ||
|
||
void onFails(String error); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.