Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jan 10, 2024
2 parents 10535bc + 5c7edd8 commit 9d416d3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,25 @@ After you've made the changes and compiled the SDK make sure to run the test sui

Some modules like ti.map or ti.facebook are included with the SDK. To update to the latest versions you have to edit the links in `support/module/packaged/modules.json` and run `node build/scons-modules-integrity.js`. This will download the files and update the integrity values.

### Update Android libraries
The `/android/titanium/build.gradle` file contains various Android libraries that are used in the SDK. If you want to update them check the corresponding release pages:
* https://developer.android.com/jetpack/androidx/releases/recyclerview
* https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout
* https://developer.android.com/jetpack/androidx/releases/camera
* https://developer.android.com/jetpack/androidx/releases/transition
* https://developer.android.com/jetpack/androidx/releases/vectordrawable
* https://developer.android.com/jetpack/androidx/releases/viewpager
* https://developer.android.com/jetpack/androidx/releases/cardview
* https://developer.android.com/jetpack/androidx/releases/drawerlayout
* https://developer.android.com/jetpack/androidx/releases/exifinterface
* https://developer.android.com/jetpack/androidx/releases/media
for a new version and change the number in the build.gradle file. Some version numbers are managed inside `/android/templates/build/ti.constants.gradle`. After that build the SDK and run `npm run test` to see if everything is still running. Building Kitchensink, Hyperloop-examples and a custom app is also helpful.

### Documentation

If you want to help updating and improving the documentation you can checkout the repository and edit the files in `/apidoc/`. Those files are shown in the API documentation at https://titaniumsdk.com/api/ and include all methods, properties, examples and so on. After you made changes run `npm run lint:docs` to see if your changes produce a valid documentation. The PR commit title you create should start with `docs: ` and a proper title like: `docs: updated textfield examples`.
All other documentation files (e.g. the guides) are located in the https://github.com/tidev/titanium-docs repository. In case you want to update guides, tutorials or spelling mistakes you clone that repo and follow the README file inside the main folder.

## Contributing

Interested in contributing? There are several ways you can help contribute to this project.
Expand Down
4 changes: 2 additions & 2 deletions android/titanium/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ dependencies {
implementation 'androidx.exifinterface:exifinterface:1.3.6'
implementation "androidx.fragment:fragment:${project.ext.tiAndroidXFragmentLibVersion}"
implementation 'androidx.media:media:1.6.0'
implementation 'androidx.recyclerview:recyclerview:1.3.0'
implementation 'androidx.recyclerview:recyclerview:1.3.1'
implementation 'androidx.recyclerview:recyclerview-selection:1.1.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.transition:transition:1.4.1'
Expand All @@ -281,7 +281,7 @@ dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])

// CameraX
def camerax_version = '1.2.2'
def camerax_version = '1.2.3'
implementation "androidx.camera:camera-core:$camerax_version"
implementation "androidx.camera:camera-camera2:$camerax_version"
implementation "androidx.camera:camera-video:$camerax_version"
Expand Down
4 changes: 2 additions & 2 deletions apidoc/Titanium/UI/View.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1810,8 +1810,8 @@ properties:
summary: Clockwise 2D rotation of the view in degrees.
description: Translation values are applied to the static post layout value.
type: Number
platforms: [android]
since: 5.4.0
platforms: [android, iphone, ipad]
since: {android: "5.4.0", iphone: "12.3.0", ipad: "12.3.0"}

- name: rotationX
summary: Clockwise rotation of the view in degrees (x-axis).
Expand Down
1 change: 1 addition & 0 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/TiViewProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ enum {
- (id)animatedCenter;

- (void)setBackgroundGradient:(id)arg;
- (void)setRotation:(id)arg;
- (TiBlob *)toImage:(id)args;
- (TiPoint *)contentOffset;

Expand Down
6 changes: 6 additions & 0 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/TiViewProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,12 @@ - (void)setBackgroundGradient:(id)arg
[self replaceValue:newGradient forKey:@"backgroundGradient" notification:YES];
}

- (void)setRotation:(id)arg
{
float val = ([TiUtils intValue:arg] * M_PI) / 180.0;
[self view].transform = CGAffineTransformMakeRotation(val);
}

- (TiBlob *)toImage:(id)args
{
KrollCallback *callback = nil;
Expand Down

0 comments on commit 9d416d3

Please sign in to comment.