-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from NerdCats/GFETCH-79
Travis CI build successful
- Loading branch information
Showing
5 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
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,46 @@ | ||
sudo: false | ||
language: android | ||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
|
||
# The BuildTools version used by your project | ||
- build-tools-23.0.3 | ||
|
||
# The SDK version used to compile your project | ||
- android-23 | ||
|
||
# Additional components | ||
- extra-google-google_play_services | ||
- extra-android-m2repository | ||
- extra-google-m2repository | ||
- extra-android-support | ||
|
||
|
||
# Specify at least one system image, | ||
# if you need to run emulator(s) during your tests | ||
# - sys-img-armeabi-v7a-android-21 | ||
- sys-img-armeabi-v7a-android-23 | ||
|
||
env: | ||
global: | ||
# install timeout in minutes (2 minutes by default) | ||
- ADB_INSTALL_TIMEOUT=8 | ||
|
||
|
||
# Emulator Management: Create, Start and Wait | ||
before_script: | ||
- echo no | android create avd --force --name test --target android-23 --abi armeabi-v7a | ||
- emulator -avd test -no-skin -no-audio -no-window -gpu off -no-boot-anim & | ||
- android-wait-for-emulator | ||
- adb devices | ||
- adb shell input keyevent 82 & | ||
|
||
before_install: | ||
- chmod +x gradlew | ||
|
||
script: | ||
- echo $ADB_INSTALL_TIMEOUT | ||
- android list target | ||
- ./gradlew build connectedCheck |
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
42 changes: 42 additions & 0 deletions
42
app/src/main/java/co/gobd/gofetch/activity/RideActivity.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,42 @@ | ||
package co.gobd.gofetch.activity; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.util.Log; | ||
|
||
import co.gobd.gofetch.R; | ||
import co.gobd.gofetch.ui.fragment.RideFragmentCallback; | ||
import co.gobd.gofetch.ui.fragment.RoutePlanFragment; | ||
|
||
|
||
public class RideActivity extends AppCompatActivity implements RideFragmentCallback { | ||
|
||
private static final String TAG = "RideActivity"; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_ride); | ||
|
||
startRoutePlanFragment(); | ||
} | ||
|
||
@Override | ||
protected void onSaveInstanceState(Bundle outState) { | ||
super.onSaveInstanceState(outState); | ||
} | ||
|
||
// Fragment callback implementation | ||
@Override | ||
public void loadConfirmationFragment(Bundle bundle) { | ||
Log.i(TAG, bundle.toString()); | ||
} | ||
|
||
|
||
private void startRoutePlanFragment() { | ||
RoutePlanFragment routePlanFragment = new RoutePlanFragment(); | ||
getSupportFragmentManager().beginTransaction() | ||
.replace(R.id.layout_ride_activity, routePlanFragment) | ||
.commit(); | ||
} | ||
} |
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
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