Skip to content

Commit 75ec932

Browse files
committed
Update test-cli-app README formatting
1 parent 95892b8 commit 75ec932

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

test-cli-app/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,38 @@
1111

1212
## First Launch
1313
- Open Android Studio - Click `Open an existing Android Studio project`
14-
![Open existing AS project](../docs/test-cli-app-howto/open-project.png)
14+
- ![Open existing AS project](../docs/test-cli-app-howto/open-project.png)
1515
- Select the `test-cli-app` Gradle project and click `OK`
16-
![Select project](../docs/test-cli-app-howto/select-project.png)
16+
- ![Select project](../docs/test-cli-app-howto/select-project.png)
1717
- Next configure the path to the Android NDK. This allows compilation and debugging of the native code (the runtime contains predominantly C++ code). `File -> Project Structure...` (`Ctrl+Alt+Shift+S`)
18-
![Open settings](../docs/test-cli-app-howto/open-settings.png)
18+
- ![Open settings](../docs/test-cli-app-howto/open-settings.png)
1919
- Set the Android NDK location to point to your `12b` extracted NDK package on a hard drive. If prompted - **Do not** install latest NDK.
20-
![Set NDK](../docs/test-cli-app-howto/set-ndk.png)
20+
- ![Set NDK](../docs/test-cli-app-howto/set-ndk.png)
2121

2222
## Configuring the project
2323
- Build a NativeScript application using the CLI (`tns build android`)
2424
- Navigate to `my-app/platforms/android/`, copy the `src` directory to `test-cli-app/app/`
2525
- Align the `model.android.compileSdkVersion` to match the one used when building your project (default - highest installed, or one passed with the `--compileSdk` flag)
26-
![Set compileSdk](../docs/test-cli-app-howto/set-compile-sdk.png)
26+
- ![Set compileSdk](../docs/test-cli-app-howto/set-compile-sdk.png)
2727
- Align the support library versions so that the big version (first number) matches that of the compileSdk
28-
![Align versions](../docs/test-cli-app-howto/align-versions.png)
28+
- ![Align versions](../docs/test-cli-app-howto/align-versions.png)
2929
- > **IMPORTANT**: If the project refers to any gradle plugins (additional support library plugins, sidedrawers, design library, google play libraries, 3rd party libraries etc.) either in `my-app/app/app.gradle`, or in any of the nativescript plugins installed in the application, those references will need to be included manually in the `test-cli-app/app/build.gradle` file's `dependencies` scope.
3030
3131
- Illustration of the above: using the `nativescript-drawingpad` in a project, it is required to refer the jcenter `"com.github.gcacace:signature-pad"` package:
32-
![3rd Party libs](../docs/test-cli-app-howto/3rd-party-plugins.png)
32+
- ![3rd Party libs](../docs/test-cli-app-howto/3rd-party-plugins.png)
3333
- Build the entire project to ensure everything is setup properly, and the runtime is ready to be debugged - `Build -> Rebuild Project`
3434

3535

3636
## Configuring debug symbols for debugging C++ code
3737
- **Note:** The following needs to be done only once. The paths to the binary directories are stored locally. Add the necessary symbols that will allow your applications to break in native (C++) code
3838
- Click on the `app` project -> `Edit Configurations`...
39-
![Edit configurations](../docs/test-cli-app-howto/edit-configurations.png)
39+
- ![Edit configurations](../docs/test-cli-app-howto/edit-configurations.png)
4040
- On the settings window that opens up click on the `Debugger` tab
41-
![Debugger tab](../docs/test-cli-app-howto/config-debugger-tab.png)
41+
- ![Debugger tab](../docs/test-cli-app-howto/config-debugger-tab.png)
4242
- Click the `+` (plus) button and proceed by adding the directories with the symbol tables for x86 and armeabi-v7a ABIs. This will ensure that whether the application debugged is an x86 emulator, or an armeabi-v7a device, C++ breakpoints will be hit.
43-
![Add Binaries](../docs/test-cli-app-howto/add-binaries.png)
43+
- ![Add Binaries](../docs/test-cli-app-howto/add-binaries.png)
4444
- Ultimately the `Debugger/Symbol Directories` tab should end up looking like this:
45-
![Final look binaries](../docs/test-cli-app-howto/final-binaries.png)
45+
- ![Final look binaries](../docs/test-cli-app-howto/final-binaries.png)
4646

4747

4848

test-cli-app/app/build.gradle

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
/*
2-
* run from dir: test-app/
3-
* run on emulator: ./gradlew runtests //default
4-
* run on device: ./gradlew runtests -PrunOnDevice
5-
*
6-
*/
7-
8-
91
def isWinOs = System.properties['os.name'].toLowerCase().contains('windows')
102

113
apply plugin: 'com.android.model.application'
@@ -21,7 +13,7 @@ model {
2113
defaultConfig.with {
2214
applicationId = "com.tns.debugapp"
2315
minSdkVersion.apiLevel = 17
24-
targetSdkVersion.apiLevel = 22
16+
targetSdkVersion.apiLevel = 25
2517
versionCode = 1
2618
versionName = "1.0"
2719
}
@@ -51,7 +43,6 @@ dependencies {
5143
compile "com.android.support:support-v4:$supportVer"
5244
compile "com.android.support:appcompat-v7:$supportVer"
5345
compile "com.android.support:design:$supportVer"
54-
compile "com.github.gcacace:signature-pad:1.0.3"
5546

5647
testCompile 'junit:junit:4.12'
5748
}
@@ -71,7 +62,6 @@ repositories {
7162
task addAarDependencies {
7263
FileTree tree = fileTree(dir: "$projectDir/src", include: ["**/*.aar"])
7364
tree.each { File file ->
74-
// remove the extension of the file (.aar)
7565
def length = file.name.length() - 4
7666
def fileName = file.name[0..<length]
7767
println "\t+adding dependency: " + file.getAbsolutePath()
@@ -115,4 +105,4 @@ task deleteDist (type: Delete) {
115105
doFirst {
116106
delete "$rootDir/dist"
117107
}
118-
}
108+
}

0 commit comments

Comments
 (0)