Skip to content

Commit

Permalink
Merge branch 'master' into TIMOB-27505
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy authored Apr 2, 2020
2 parents fe3a589 + f9ac20a commit cb13c0d
Show file tree
Hide file tree
Showing 1,760 changed files with 18,108 additions and 64,244 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/report-a-bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CLI version:

**Logs**:
Creating a trace-log:
- CLI: `appc run - p [ios|android|windows] -l trace`
- CLI: `appc run - p [ios|android] -l trace`
- Studio / Atom: `Log-Level (Bottom right): Trace`

(Attach by dragging into this issue)
Binary file modified .github/logo-titanium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 4 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,10 @@ retirejs.output.json
junit.*.xml
junit_report.xml

# intelliJ Android User-specific configurations
/android/.idea/libraries/
/android/.idea/workspace.xml
/android/.idea/tasks.xml
/android/.idea/.name
/android/.idea/compiler.xml
/android/.idea/copyright/profiles_settings.xml
/android/.idea/encodings.xml
/android/.idea/misc.xml
/android/.idea/modules.xml
/android/.idea/scopes/scope_settings.xml
/android/.idea/vcs.xml
*.iml
/android/.project
/android/app/.project
/android/kroll-apt/.project
/android/titanium/.project

/iphone/TitaniumKit/Carthage
/iphone/TitaniumKit/docs
Expand Down
225 changes: 224 additions & 1 deletion CHANGELOG.md

Large diffs are not rendered by default.

327 changes: 172 additions & 155 deletions Jenkinsfile

Large diffs are not rendered by default.

69 changes: 40 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,37 @@ see the LICENSE file for specific details.

[![Greenkeeper badge](https://badges.greenkeeper.io/appcelerator/titanium_mobile.svg)](https://greenkeeper.io/)

1. [Features](#features)
2. [Hyperloop](#hyperloop)
3. [Alloy](#alloy)
4. [Getting Help](#getting-help)
* [Official Documentation, Tutorials and Videos](#official-documentation-tutorials-and-videos)
* [Developer Community](#developer-community)
* [Video Tutorials](#video-tutorials)
* [Slack](#slack)
* [Twitter](#twitter)
* [Blog](#blog)
* [Commercial Support, Licensing](#commercial-support-licensing)
5. [Contributing](#contributing)
6. [Building Locally](#building-locally)
* [Unit Tests](#unit-tests)
7. [Legal Stuff](#legal-stuff)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Hyperloop](#hyperloop)
- [Features](#features-1)
- [Cross-Platform Reuse](#cross-platform-reuse)
- [Direct API Access](#direct-api-access)
- [JavaScript Everywhere](#javascript-everywhere)
- [3rd-Party Libraries](#3rd-party-libraries)
- [Custom Animations](#custom-animations)
- [Run Native](#run-native)
- [Example](#example)
- [Getting Started](#getting-started)
- [Alloy](#alloy)
- [Example](#example-1)
- [Getting Help](#getting-help)
- [Official Documentation, Tutorials and Videos](#official-documentation-tutorials-and-videos)
- [Developer Community](#developer-community)
- [Video Tutorials](#video-tutorials)
- [Slack](#slack)
- [Twitter](#twitter)
- [Blog](#blog)
- [Commercial Support, Licensing](#commercial-support-licensing)
- [Contributing](#contributing)
- [Building Locally](#building-locally)
- [Unit tests](#unit-tests)
- [How it works](#how-it-works)
- [How to modify the tests locally and in your PRs](#how-to-modify-the-tests-locally-and-in-your-prs)
- [Adding a new test suite](#adding-a-new-test-suite)
- [Editing an existing test suite](#editing-an-existing-test-suite)
- [Merging the modified tests back to the common suite](#merging-the-modified-tests-back-to-the-common-suite)
- [Legal Stuff](#legal-stuff)

## Features

Expand Down Expand Up @@ -209,9 +225,8 @@ Previously Titanium used scons and python scripts to build the SDK.
If you'd like to build the SDK locally, we've replaced scons with some Node.JS scripts. Typical usage would be:

```bash
npm install
cd build
node scons.js cleanbuild --android-ndk /opt/android-ndk --android-sdk /opt/android-sdk
npm ci
npm run cleanbuild
```

The build and package commands will default to all target platforms on your host OS unless explicitly specified. (i.e. Android, iOS on macOS; Windows and Android on Windows). It will compile, package and install the locally-built SDK for you
Expand All @@ -222,20 +237,20 @@ The build command will look for Android NDK and SDK using $ANDROID_NDK and $ANDR
You can use the `-h` flag to display the full list of comands and options.

```bash
npm install
cd build
node scons.js cleanbuild [platform1] [platform2] --android-ndk /opt/android-ndk --android-sdk /opt/android-sdk /Users/build/android-sdk-macosx
npm ci
npm run cleanbuild -- [platform1] [platform2] --android-ndk /opt/android-ndk --android-sdk /opt/android-sdk /Users/build/android-sdk-macosx
```

### Unit tests

We have a [common unit test suite](https://github.com/appcelerator/titanium-mobile-mocha-suite) intended to run across all supported platforms.

To invoke the tests, you must create a local build of the sdk via the steps above and have an sdk zip in your `dist` directory. Then you'd run:
We have npm scripts set up to run a full clean, build, package, symlinked install, `ti sdk select` the built sdk, and then run the unit test suite:

```bash
cd build
node scons.js test [platform]
npm run test:android
npm run test:iphone
npm run test:ipad
```

#### How it works
Expand All @@ -250,13 +265,9 @@ The `tests` folder acts as an override folder for the common suite. Any files li

##### Adding a new test suite

In practical terms that means if we need to add new test files, you'd place the new file under `tests/Resources`, and then copy the `titanium-mobile-mocha-suite/Resources/app.js` to `tests/Resources/app.js` and editing the copy to require the new file(s).
We also have a mechanism in our test suite to auto load any files under `tests/Resources` with the suffix `.addontest.js`. So adding new tests, is simply a matter of creating a file named something like `tests/Resources/ti.namespace.addontest.j

For example, if we want to test a new `Ti.Foo` namespace, we'd create a new test file at `tests/Resources/ti.foo.test.js`. We'd then copy `titanium-mobile-mocha-suite/Resources/app.js` to `tests/Resources/app.js` and add the line:

```javascript
require('./ti.foo.test')
```

##### Editing an existing test suite

Expand Down
21 changes: 15 additions & 6 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
bin
gen
*.pydevproject
*.jpage
.DS_Store
.ant_targets
.classpath/
.cxx/
.externalNativeBuild/
.gradle/
.idea/*
!/.idea/codeStyles/
.project/
.settings/
build/
!/templates/build/
*.iml

/kroll-apt/bin/
/local.properties
/titanium/assets/Resources/ti.internal/build.properties
149 changes: 149 additions & 0 deletions android/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions android/.idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions android/.idea/libraries/android_support_compat.xml

This file was deleted.

9 changes: 0 additions & 9 deletions android/.idea/libraries/android_support_design.xml

This file was deleted.

9 changes: 0 additions & 9 deletions android/.idea/libraries/android_support_v7_cardview.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/common.xml

This file was deleted.

9 changes: 0 additions & 9 deletions android/.idea/libraries/jaxen_1_1_1.xml

This file was deleted.

Loading

0 comments on commit cb13c0d

Please sign in to comment.