-
Notifications
You must be signed in to change notification settings - Fork 64
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 #5 from King-of-Spades/espresso-(fixed)
Espresso (fixed)
- Loading branch information
Showing
101 changed files
with
104 additions
and
62 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ build/ | |
local.properties | ||
*.iml | ||
.gradle | ||
xtcMac | ||
xtcWin |
File renamed without changes.
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,47 @@ | ||
# Build status | ||
[![Build status](https://build.appcenter.ms/v0.1/apps/07cf2b4b-3731-4013-90e5-7d790816a968/branches/master/badge)](https://appcenter.ms) | ||
|
||
# Building & running tests locally | ||
## Building | ||
Steps on how to build Swiftnotes: | ||
1. Make sure you have the latest version of Android Studio with Gradle v4.1 and the required Android SDK Tools installed (26.1.1 Build tools) | ||
2. Open the project using *Android Studio > File > Import Project* | ||
3. Select *build.gradle* in Swiftnotes. (Picking another directory may still seem to open the project, but cause trouble building.) | ||
4. Go to *File > Project Structure > SDK Location* and make sure Android SDK and JDK paths are set. | ||
5. Select *Build > Rebuild Project* | ||
|
||
## Running tests | ||
To run tests locally: | ||
1. Make sure you can build the app (see above) | ||
2. Navigate in Android Studio to *app > java > com.moonpi.swifnotes (androidTest) > CreateNoteTest* | ||
3. Right-click *CreateNoteTest* and select *Run 'CreateNoteTest'* | ||
4. Select a device or emulator from the dialog to install the app and run the tests. | ||
|
||
# Uploading app & tests | ||
## Uploading to App Center Test | ||
1. Build the app & tests locally. (Running locally is optional but a good idea) | ||
2. Generate a command line for upload. [Directions](/../../#appcentertest-command-line) | ||
3. Run the upload command with project-specific arguments: | ||
- **OS X** paste your command as the value for 'AppCenter_Test_Command' in 'upload.sh'. In terminal navigate to the Maven folder and run 'sh upload.sh' to upload to AppCenter/Test | ||
- **Windows** The 'upload.sh' file is not technically compatible with Windows, however it shows how to modify the generated command to upload this sample manually. | ||
See Also: [upload.sh](upload.sh) | ||
|
||
## Uploading to Test Cloud | ||
1. Build the app & tests locally. (Running locally is optional but a good idea) | ||
2. Generate a command line for upload. [Directions](/../../#testcloud-command-line) | ||
3. Unzip 'xtcMac.zip' or 'xtcWindows.zip' depending on the platform you're using. | ||
4. Run the upload command with project-specific arguments: | ||
- **OS X** paste your command as the value for 'TestCloud_Command' in 'tcupload.sh', and remove the directory value for '--workspace'. In terminal run 'sh tcupload.sh' to upload to AppCenter/Test. | ||
- **Windows** The 'tcupload.sh' file is not technically compatible with Windows, however it shows how to modify the generated command to upload this sample manually. | ||
|
||
See Also: [tcupload.sh](tcupload.sh) | ||
|
||
# License for Swiftnotes sample app | ||
|
||
Copyright © 2017 Adrian Chifor | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
# Provide Test Cloud upload command | ||
TestCloud_Command='paste your command here' | ||
# Delete 'app/build/outputs/apk' because the script is unable to update it when reading the slashes. The "workspace" variable below will add the path back in. | ||
|
||
# provide a path to the APK, the workspace, and the unzipped xtcMac or xtcWin folder. | ||
apk_path='app/build/outputs/apk/debug/app-debug.apk' | ||
workspace='--workspace app/build/outputs/apk/androidTest/debug' | ||
platform='xtcMac/xtc' | ||
|
||
# Run using the command "sh tcupload.sh" | ||
|
||
# Script injects app_path & platform and executes resulting command | ||
TestCloud_Command=${TestCloud_Command/'--workspace'/$workspace} | ||
TestCloud_Command=${TestCloud_Command/'yourAppFile.apk'/$apk_path} | ||
TestCloud_Command=${TestCloud_Command/'xtc'/$platform} | ||
echo $TestCloud_Command | ||
eval $TestCloud_Command |
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,14 @@ | ||
# Provide AppCenter/Test upload command | ||
AppCenter_Test_Command='paste your command here' | ||
|
||
# Point to APK & test build-dir | ||
apk_path='app/build/outputs/apk/debug/app-debug.apk' | ||
build_dir='app/build/outputs/apk/androidTest/debug' | ||
|
||
# Run using the command "sh tcupload.sh" | ||
|
||
# Script injects set values | ||
AppCenter_Test_Command=${AppCenter_Test_Command/'pathToFile.apk'/$apk_path} | ||
AppCenter_Test_Command=${AppCenter_Test_Command/'pathToEspressoBuildFolder'/$build_dir} | ||
echo $AppCenter_Test_Command | ||
eval $AppCenter_Test_Command |
Binary file not shown.
Binary file not shown.
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