Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
Nabil Khalil a32e272b0b
Picker Replacement (#1762)
* Replaced all occurences of picker from react native library with picker from community library in the fluent tester

* resolved argument type errors that occured after changing to the community picker control

* replaced picker with menu for basic avatar

* replaced picker for call out

* structured things so that the MenuPicker is only defined once

* replaced picker on AlignmentPicker with picker for win32

* moved MenuPicker to common folder

* resolved alignment picker type errors

* resolved alignment picker type errors and replaced standard usage and theme picker pickers with the menupicker

* added macos files and added menu picker for standard usage on win32 for persona coin

* added persona coins standard usage example to macos

* fixed alignment picker not showing selected option

* changed menu picker styles

* added picker community package to ios

* Change files

* added platform checks for callout

* removed dupe tests for basic avatar

* removed macos/win32 platform files for alignment picker

* removed dupe tests from personas

* created menu picker specific for theme picker macos

* replaced android picker props for community picker props

* defined menu picker props

* made menu picker control whether or not to use menu or community picker module

* made MenuPicker styles const objs

* moved styledpicker to common

* removed MenuPicker platform check and added MenuPicker platform specific files

* Added comment explaining why we have MenuPicker

* correctly adjusted community Picker props

* added community picker module to windows package.json

* resolved merge conflict

* revert adding picker module to windows package

* resolved build error

* removed merge conflict left behind in podfile

* added picker module to windows tester app

* Remove RNC-picker from windows test app

* set windows picker to have a width

* removed .vs

* reverted changelog change

* reverted yarn lock

* added const styles for ThemePicker macos

* removed rnc picker from ignoreMatches

* reverted win32 changelog

* removed set picker width for windows

* put picker styles in common

* removed unsused stylesheet

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
2022-06-29 16:51:15 -04:00
Ruriko Araki 52745ec564
Remove dependencies in docs (#1455)
* Remove next dependency

* Rename files

* Rename links

* Rename links

* Update index

* Update index
2022-02-17 15:36:25 -08:00
lenahong f1ea0469de
Autolink Drawer Android Native Module to FURN Drawer (#1216)
* Add and expose hello world ver of Drawer native module

* autolink modules

* update gradle fles and make drawer testpage

* Add simple drawer module without methods

* delete empty file

* Change files

* update lock file

* update dependencies

* delete yarn lock file

* bump react packages ver

* include update yarn.lock file

* update yarn lock file

* update lock file

* add drawer types file

* remove double quotes

* avoid depcheck error

* move gitignore dir

* remove target ref bit from Drawer

* edit gitignore directory

* update react package versions

* updatre yarn lock file
2021-12-08 07:07:40 +09:00
Saad Najmi 1a8a1c134d
Add VS Code debugging configurations (#1075)
* remap some colors

* Add VS Code debugging configurations

* Update Documentation

* update types

* Change files

* Fix another typo.
2021-10-15 16:39:14 -05:00
Saad Najmi 183bcbe111
Update Native Apple Code for better downstream integration (#710)
### Platforms Impacted
- [x] iOS
- [x] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

This change refactors some of our native iOS and macOS code for better downstream integration into the office codebase.

Namely:
- Every native module's `<Component>-Bridging-Header.h` has been renamed to `<Component>ViewManager.h`. 
  - These files were never bridging headers, and cocoa pods / swift never interpreted them as such. There is potential to improve the RN docs on how to write a native swift module here as well.
- Adds the `BUILD_LIBRARY_FOR_DISTRIBUTION` flag to each native module's pod spec
  - This flag allows for ABI stability in our swift static libraries. Note that the main side effect of this flag is it produces a `.swiftinterface` file in the static libraries' swift module. I do not include the swift module in the NuGet to be included downstream in office. In my testing I found it was not needed to get iOS NativeButton to link, so I opted not to include the swif module. This may change in the future as I try to figure out why the macOS NativeButton static library won't link.
- Adds the `OTHER_SWIFT_FLAGS=-gline-tables-only` flag to each native module's pod spec
  - This is a potential security risk that is fixed, as per the comment here https://github.com/microsoft/fluentui-react-native/pull/710#discussion_r688016727 . 
- removes the `CLANG_DEBUG_INFORMATION_LEVEL=line-tables-only` build flag
  - This caused issues with the previous `BUILD_LIBRARY_FOR_DISTRIBUTION` flag and build failures. I'm not sure why. 
- Sets the Swift version to 5.0
  - I added this because I noticed that Azure pipelines would actually use the Swift 5.3.2 compiler, so I wanted to be explicit which version of swift we are compiling for.

Prior to this change, we could not link the NativeButton component downstream into office due to some linker issues. This change updates a few parts of our native iOS and macOS code such that we can now link the iOS NativeButton. The macOS NativeButton static library still does not properly link, I'll leave that as a followup.

### Verification

I had a local change downstream in office to consume an intermediate NuGet produced by this PR and test that linking worked. That's where I saw that iOS and not macOS works. Link for those who can see it: https://office.visualstudio.com/OE/_build/results?buildId=9621115&view=logs&j=4257c0a7-7659-5375-d6e0-cde9f28a3d36

### Pull request checklist

This PR has considered (when applicable):
- [x] Automated Tests
- [x] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2021-08-13 08:48:32 +00:00
Saad Najmi 718fb46581
Fix nuget pipeline (#481)
* Explicitly specificy files to include in nuspec

* Update azure-pipelines.publish.yml for Azure Pipelines

* renamed nuspec in yml

* Fix some edits in package.nuspec

* Update azure-pipelines.publish.yml
2020-09-24 10:16:06 -07:00
Saad Najmi 0c35ad1f0b
Shimmer view component on iOS (#372)
* Copy Link into Shimmer

* try to add it to fluent tester

* Shimmer test (copy of Link Test) showing in iOS test app

* Minimum set of files for an empty native shimmer control, everything is commented out that isn't needed

* obj c version of wrapped shimmer view. needs a /MicrosoftFluentUI/Swift Compatibility Header in the HSP of the generated xcconfig to work

* updated gitignore

* Converted to swift

* Try adding a podspec and referencing it in our final app

* rename podspec

* Remove unnecessary files

* ShimmerView rendering in test app

* Wrapped Shimmer View instead of ShimmerLinesView

* Moved a file

* Trying to add a custom property, does not work

* Using compose framework once more

* shimmerAppearance also exposed

* Lets just use props and no tokens for now

* cleaner swift file

* minor changes

* More changes

* Update some dependencies from the upstream counterpart

* Added new test

* Change files

* Fixed two bugs where Shimmer.tsx threw a tyoe error, and where ShimmerContainverView did not set props correctly

* Some extra comments / documentation

* Setting a defualt token works, customization does not

* Token customization works

* use updated FUA version of shimmer

* Updated podspec

* Add back a minimum iOS deployment target, remove tokenProps

* Update Xcode Version to 11.4.1

* Remove tokenprops: true from Shimmer
2020-09-09 01:07:40 -07:00
Samuel Freiberg 00aa319f77
Enhance E2E Reporting + CI Reliability (#325)
* Yarn

* Enhance E2E Reporting + CI Reliability

* Nit - Formatting

* Removing sleep call - originated from RNW. Will observe how this affects the pipeline
2020-07-10 11:51:09 -07:00
Samuel Freiberg f46fc39f15
UWP E2E Testing (#233)
* Yarn

* UWP Testing

* UWP testing working

* Increasing Timeouts for WebDriverIO and Jasmine to account for long bundle loads

* Change files

* CI Tests

* CI Loop UWP

* Fix

* small fix

* Small

* CI

* Removing CI changes

* Getting ready for PR

* Upgrading react-native-windows to .47

* Reverting changes

* Adding Page Timeout const

* script change

* Updating CI

* Change files

* ReadMe updated

* Adding constants

* PR Fixes
2020-06-04 16:13:22 -07:00
HeyImChris d154883db2
Move projects up a dir and opt apple platforms into lerna/yarn (#226)
* move projects up a dir and opt apple platforms into lerna/yarn

* Don't need to modify these anymore with our projects moved up a level

* try to fix some out of tree platform issues for apple

* Fix build error of wrong platform

* Add parity to win32/windows with our index.js and index.tsx mapping.

* split ios/macos, stand up ios tester

* Remove bundles

* Update CI with our new project locations

* More CI updates

* Pushing up changes the CI says it needs in yarn.lock

* delete unused app.js file

Co-authored-by: Jason Morse <jasonmo@microsoft.com>
2020-05-28 18:41:21 -07:00
Samuel Freiberg c53ef0fc65
Restructuring E2E Testing (#215)
* Yarn

* Adding Appium Testing - Unable to open FluentTester

* Fluent Tester app is booting

* Runs tests

* Opnes + clicks on test pages, some tests still fail though

* Simplified tsconfig

* Opening pages

* Commit

* Removing local paths, replacing with path.resolve()

* Azure-Pipeline additions

* Change files

* yarn lock

* Fixing app command-line agrs

* Pipeline Test

* Pipeline changes

* Testing a failed E2E scenario with CI

* Finalized CI

* Small Link test page update

* Nit fix

* PR Fixes

* PR Fixes

* PR Fixes

* Small PR change

* Small PR Fix

* Nit removing './' in import statement

* Delete appium.txt

Not needed

* Delete appium.txt

* PR Fix

* PR Remove comments

* PR Fixes - Created BasePage

* PR Change fixes

* PR Fixes

* Adding E2E reports to .gitignore

* Delete appium.txt

* New structure - Checkbox/Button test

* Chaning structure of E2E Testing, taking into account we'll be adding support for iOS, Mac, UWP, Android.

* Adding E2E Testing README

* Removing old files

* Readme fix

* Updating ReadME

* PR Fixes - Adding newlines

* Adding new exports for constants
2020-05-20 18:07:23 -07:00
Samuel Freiberg ab9641d24e
Appium E2E Testing - Phase 1 (#203)
* Yarn

* Adding Appium Testing - Unable to open FluentTester

* Fluent Tester app is booting

* Runs tests

* Opnes + clicks on test pages, some tests still fail though

* Simplified tsconfig

* Opening pages

* Commit

* Removing local paths, replacing with path.resolve()

* Azure-Pipeline additions

* Change files

* yarn lock

* Fixing app command-line agrs

* Pipeline Test

* Pipeline changes

* Testing a failed E2E scenario with CI

* Finalized CI

* Small Link test page update

* Nit fix

* PR Fixes

* PR Fixes

* PR Fixes

* Small PR change

* Small PR Fix

* Nit removing './' in import statement

* Delete appium.txt

Not needed

* Delete appium.txt

* PR Fix

* PR Remove comments

* PR Fixes - Created BasePage

* PR Change fixes

* PR Fixes

* Adding E2E reports to .gitignore

* Delete appium.txt
2020-05-19 16:28:41 -07:00
HeyImChris 4a4ec26c0b
iOS/macOS with CI and RN dependencies (#166)
* Add macOS/iOS RN deps, update CI

* Update CI steps to launch custom macos/ios packagers

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Syntax fixes to CI

* Rewrite the yml to fit ADO syntax. Split packagers into two shell scripts

Delete extraneous ios target

* Update apple-xcode-build.yml

* Remove extra vmimage reference

* Update yarn.lock

* Specify vmIage as macos within the job

* Fix path to podfiles

* Add more explicit description of pod install task

* bash var syntax

* Update apple-xcode-build.yml

* Update condition variable syntax

* update missed var name

* add yarn install to platform folders to install node_modules

* yarn install

* update path to build

* Build with rn commands instead of xcodebuild

* synax fix

* Update build settings and remove part of build infra to unblock

* Update mac test project

* Clean up view controller and app delegate code to load the bridge more succinctly

* Pull in the same version of rn for mac/ios

* Make the view controller our delegate

* Remove a pod we dont need until we're on 0.61

* Remove other pods that don't exist in 0.60

* Fix up more pod deps to match 0.60.0 instead of 0.62.0

* Remove flipper deps
2020-04-21 19:20:09 -07:00
Chris Hogan e3d07f2eb8 update CI for new macos location 2020-04-15 16:01:39 -07:00
Christopher Hogan 566fd66c3c update dependencies in our lock files 2020-04-14 14:43:51 -07:00
Christopher Hogan b1ebe2deef Stand up the iOS FluentUI-React-Native project 2020-04-13 17:40:22 -07:00
Micah Godbolt b4e6c101ff merge conflicts 2020-04-07 08:13:40 -07:00
Micah Godbolt 937f5ab42f init 2020-04-06 16:55:32 -07:00
Jason Morse 0e94324d2a
Bundling, jest improvements, adding windows tester (#145)
* add initial windows template

* minor updates to configuration

* rename tester package

* update fluent-tester deps

* pull experiments/tester out of the compilation

* move tester sources to fluent-tester

* more file changes

* switch the bin name from just-script to fluent-scripts to disambiguate names

* get bundling working in fluent-tester for win32

* unhoist RN to unblock win32

* move last few files from experiments/tester

* Change files

* add .DS_Store to root gitignore

* more config and babel updates

* fix build/bundling errors after syncing master

* fixed metro bundling and start to build rn tools package

* restore checkbox test

* move checkbox test to match pattern from other components

* clean up unused files in scripts

* fix build errors from merge and script transfer

* fix final bundling issues

* Change files

* more updates to fix configurations

* remove demo and experimental web controls

* add pressability from RN 0.63 and rework interactive hooks

* remove win32 references from the tester

* move metro task to build tools

* rename file

* fix windows and win32 bundles

* improve overall bundling task workflow

* fix some win32 build errors

* add some configuration versatility

* add server option to metro task

* add postinstall script to update caches

* attempts to make XAML version reference the right bundle

* enable jest tests for Text and Separator

* Change files

* update yarn.lock

* write windows bundle to dist
2020-04-03 13:21:30 -07:00
Christopher Hogan 7aed62c03f Convert to a swift project, use xcconfigs for debug/release, update for cocoapod workspace support 2020-03-25 16:48:21 -07:00
Christopher Hogan d7c17aa06e suffix the project with 'Tester' and update gitignore for one other generated pod-related file 2020-03-25 09:56:18 -07:00
Christopher Hogan ebce7d225e add a mac xcodeproj that generates an xcworkspace 2020-03-24 23:42:59 -07:00
Jason Morse 74f321a5c3
Initial scaffolding (#1)
* populate with files copied from sdx-platform

* some build fixes

* Some little fixes to get started with initial scaffolding (#1)

* patch to make tsc happy

* fixing some typings

* breakup theming somewhat and fix breaks

* remove postbuild step for now

* add basic docz inclusion

* add start of a demo app

* fix webpack + typescript integration for demo app

* create web versions of native control set

* split component infrastructure into separate packages

* Split theme-registry out and add some documentation
2019-08-02 09:28:49 -07:00
Microsoft GitHub User 6b2ceca4d3
Initial commit 2019-07-10 13:27:20 -07:00