Giter VIP home page Giter VIP logo

fuse-samples's Introduction

fuse-samples

This repo contains smaller samples demonstrating the use of various Fuse and FuseJS APIs.

All samples are stand-alone projects which should be able to run without modification.

Contributions

These samples are supplied directly from the feature teams of Fuse and we welcome any input on issues and suggestions for new samples.

Samples

FuseJS

Camera FileSystem Filter on Observable condition GeoLocation
Lifecycle Storage UserEvents

Fuse

App navigation Calendar navigation Context menu Edge Navigator
Modal screen Navigator and router Page tabs PlaySound
Swipe gesture Top-/BottomFrameBackground Transition behaviours UserEvents
Zoom- Pan- and RotateGesture Vectors Charting Infinite scrolling
Pie chart Bar chart Line graph

Foreign code

Accelerometer Localization Native dialogs

Animation

Attractor Motion Cycle Phase Expanding Toolbar MixOp
RelativeTo Timeline Wrap Scroll swipe to reveal header

Custom Controls

Button with image Circular control Dropdown menu Scrollbar
Selection
Rating controls

Misc

AmazonS3 Azure AD B2C login Facebook login Game of life
OAuth (GitHub login)

fuse-samples's People

Contributors

alzuma avatar bondehagen avatar cbaggers avatar eksperts avatar knatten avatar kristianhasselknippe avatar kusma avatar mortend avatar mortoray avatar ollef avatar petterroea avatar sebbert avatar shnupta avatar snap608 avatar sunjammer avatar tapped avatar yupferris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fuse-samples's Issues

ImageViewer is broken

ImageViewer has a couple of bugs that I don't have the knowledge of how to fix.

  • - Double tapping to reset the transform and the close button works only while interacting with the Rotate- Zoom- and RotateGestures.
  • - Rotation gesture often wraps around, resulting in a rotation > 180°, instead of taking the shortest path.
  • - A bunch of TODO comments and confusion regarding removed/renamed/deprecated features

Tested using Android preview, Fuse 0.26.0 (7741)

FuseJS/Storage does not work in Android Export

Hi!

When I export the Storage Example to my Android show this log and the app not open..

Running logcat on 'ce091719e962962102'

02-10 17:33:40.800 5183 8098 I ActivityManager: Start proc 19346:com.apps.storageexample/u0a307 for activity com.apps.storageexample/.StorageExample
02-10 17:33:40.801 19346 19346 E Zygote : isWhitelistProcess - Process is Whitelisted
02-10 17:33:40.802 19346 19346 W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G950F_8.0.0_0018, [-1 -1 -1 -1 0 1]
02-10 17:33:40.803 19346 19346 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.apps.storageexample
02-10 17:33:40.808 19346 19346 I zygote : Late-enabling -Xcheck:jni
02-10 17:33:40.903 19346 19346 D ActivityThread: Added TimaKeyStore provider
02-10 17:33:40.944 9191 9241 I SAMSUNGPAY: [Hint_ProcessStatusChange] fg Change, pid : 19346 , isNotify : true , isForeground : true , fg list : [19346, 6759]
02-10 17:33:40.946 6137 12642 D ProcessObserver_FLP: onForegroundActivities changed, 19346/10307/true
02-10 17:33:41.053 19346 19387 I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib/egl/libGLES_mali.so from the current namespace instead.
02-10 17:33:41.077 19346 19387 D libEGL : loaded /vendor/lib/egl/libGLES_mali.so
02-10 17:33:41.097 19346 19346 D StorageExample: SDK: 26
02-10 17:33:41.114 19346 19357 I zygote : Do partial code cache collection, code=30KB, data=24KB
02-10 17:33:41.114 19346 19357 I zygote : After code cache collection, code=30KB, data=24KB
02-10 17:33:41.114 19346 19357 I zygote : Increasing code cache capacity to 128KB
02-10 17:33:41.173 19346 19346 V Surface : sf_framedrop debug : 0x4f4c, game : false, logging : 0
02-10 17:33:41.174 19346 19346 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1x1]-format:1
02-10 17:33:41.404 19346 19357 I zygote : Do partial code cache collection, code=62KB, data=41KB
02-10 17:33:41.405 19346 19357 I zygote : After code cache collection, code=62KB, data=41KB
02-10 17:33:41.405 19346 19357 I zygote : Increasing code cache capacity to 256KB
02-10 17:33:41.470 19346 19444 D OpenGLRenderer: HWUI GL Pipeline
02-10 17:33:41.481 19346 19346 D ViewRootImpl@e77a1e4[StorageExample]: setView = DecorView@69b964d[StorageExample] TM=true MM=false
02-10 17:33:41.523 19346 19346 V InputMethodManager: Not IME target window, ignoring
02-10 17:33:41.526 19346 19346 D ViewRootImpl@e77a1e4[StorageExample]: dispatchAttachedToWindow
02-10 17:33:41.545 5183 7941 D InputDispatcher: Focus entered window: 19346
02-10 17:33:41.548 19346 19346 V Surface : sf_framedrop debug : 0x4f4c, game : false, logging : 0
02-10 17:33:41.551 19346 19346 D ViewRootImpl@e77a1e4[StorageExample]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,2220] result=0x7 surface={valid=true 3345997824} changed=true
02-10 17:33:41.552 19346 19444 I OpenGLRenderer: Initialized EGL, version 1.4
02-10 17:33:41.552 19346 19444 D OpenGLRenderer: Swap behavior 2
02-10 17:33:41.556 19346 19444 D libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : com.apps.storageexample
02-10 17:33:41.578 19346 19444 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x2220]-format:1
02-10 17:33:41.578 19346 19444 D OpenGLRenderer: eglCreateWindowSurface = 0xc75f4ba8
02-10 17:33:41.591 19346 19434 D StorageExample: Js initialized
02-10 17:33:41.623 19346 19346 D SurfaceView: BG show() Surface(name=Background for - SurfaceView - com.apps.storageexample/com.apps.storageexample.StorageExample@c291580@0) android.view.SurfaceView{c291580 V.E...... ......ID 0,0-1080,2220}
02-10 17:33:41.639 19346 19346 V Surface : sf_framedrop debug : 0x4f4c, game : false, logging : 0
02-10 17:33:41.639 19346 19346 D SurfaceView: surfaceCreated 1 android.view.SurfaceView{c291580 V.E...... ......ID 0,0-1080,2220}
02-10 17:33:41.643 19346 19346 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x2220]-format:1
02-10 17:33:41.644 19346 19346 D SurfaceView: surfaceChanged (1080,2220) 1 android.view.SurfaceView{c291580 V.E...... ......ID 0,0-1080,2220}
02-10 17:33:41.671 19346 19460 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7 in tid 19460 (Thread-3)
02-10 17:33:41.765 5079 5079 I /system/bin/tombstoned: received crash request for pid 19346
02-10 17:33:41.768 19478 19478 I crash_dump32: performing dump of process 19346 (target tid = 19460)
02-10 17:33:41.770 19478 19478 F DEBUG : pid: 19346, tid: 19460, name: Thread-3 >>> com.apps.storageexample <<<

02-10 17:33:42.878 5183 19572 D InputDispatcher: Focus left window: 19346
02-10 17:33:42.892 3248 3248 E lowmemorykiller: Error writing /proc/19346/oom_score_adj; errno=22

02-10 17:33:42.933 5043 5043 I Zygote : Process 19346 exited due to signal (11)
02-10 17:33:42.937 5183 5196 I ActivityManager: Process com.apps.storageexample (pid 19346) has died: vis +99TOP (74,909)

02-10 17:33:42.963 9191 9241 I SAMSUNGPAY: [Hint_ProcessStatusChange] invoke foreground activities changed - onProcessDied pid:19346 uid : 10307
02-10 17:33:42.974 5183 5256 W ActivityManager: setHasOverlayUi called on unknown pid: 19346
02-10 17:33:42.978 6137 12642 D ProcessObserver_FLP: onProcessDied, 19346/10307

Process com.apps.storageexample terminated.

GithubOAuth tells users to distribute their client secrets

The GithubOAuth example uses OAuth2's authorization code grant.
This is fine if you can delegate the authorization to a server you own and store the client secret there, but this isn't the case here. The README instructs users to paste their client secret into the app. This is a very bad idea™, as these can very easily be extracted from the exported package.

To be fair, there is a security warning in the README, but "Note:" is not how you tell people about fundamental security flaws.

There does exist another OAuth flow, implicit grant, which doesn't require a client secret. GitHub does not support this, however.

We should either provide some basic server code, or switch to a different provider for this example.

Include example of EdgeNavigation

If possible this would highlight how to override the default behaviours. Such as:

  • Disabling swiping to toggle the menu
  • Disabling dragging of menu panel when its active
  • Applying alternative triggers

These questions come up a lot on Slack so thought I would post the request here.

NativeFacebookLogin not working on Andorid

Hi,

I am trying to run NativeFacebookLogin example on both iOS and Android. It is working on iOS but getting below error in Android.

Uno.Exception: Unexpected CallbackManager, please use the provided Factory.
   at Android.Base.JNI.TryGetException(Android.Base.Primitives.JNIEnvPtr,[string])
   at Android.Base.JNI.CheckException(Android.Base.Primitives.JNIEnvPtr,[string])
   at Android.Base.JNI.CheckException(Android.Base.Primitives.JNIEnvPtr)
   at FacebookLoginModule.FacebookLoginPromise.Login()
   at Fuse.UpdateListener.Invoke()
   at Fuse.UpdateManager.ProcessOnces(Fuse.Stage,Uno.Collections.List<Uno.Exception>&)
   at Fuse.UpdateManager.Update(Fuse.Stage)
   at Fuse.UpdateManager.ProcessStages()
   at Fuse.UpdateManager.Update()
   at Outracks.Simulator.Client.Application.OnUpdate()
   at Fuse.App.OnTick(object,Uno.Platform.TimerEventArgs)
   at Uno.Platform.Display.OnTick(Uno.Platform.TimerEventArgs)
   at Uno.Platform.AndroidDisplay.OnFrameCallback(double,double)

Any idea how I can fix it?

Charting example is not working

Samples/Visualization/Charting is not working on FuseJS open beta with the following error:

Configuring
/Users/animir/Library/Application Support/Fusetools/Packages/Fuse.Charting/0.5.0-rc1/ObservableList.uno(15): E0000: Method 'Subscribe(Fuse.Reactive.IObserver)' does not exist in interface Fuse.Reactive.IObservable
/Users/animir/Library/Application Support/Fusetools/Packages/Fuse.Charting/0.5.0-rc1/ObservableList.uno(15,1): Error E0000: Method 'Subscribe(Fuse.Reactive.IObserver)' does not exist in interface Fuse.Reactive.IObservable
Build completed in 0.73 seconds
    1 error
Fuse 1.4.0 (build 14869)
2.0 s

Compiling syntax tree

/Users/ian/Library/Application Support/Fusetools/Packages/Fuse.Charting/0.6.0-rc1-master-8508064/ObservableList.uno(39): E0000: Fuse.Charting.ObservableData.Subscription does not implement interface member 'Fuse.Reactive.ISubscription.ClearExclusive(Fuse.Scripting.Context)'
/Users/ian/Library/Application Support/Fusetools/Packages/Fuse.Charting/0.6.0-rc1-master-8508064/ObservableList.uno(39): E0000: Fuse.Charting.ObservableData.Subscription does not implement interface member 'Fuse.Reactive.ISubscription.SetExclusive(Fuse.Scripting.Context,object)'
/Users/ian/Library/Application Support/Fusetools/Packages/Fuse.Charting/0.6.0-rc1-master-8508064/ObservableList.uno(39): E0000: Fuse.Charting.ObservableData.Subscription does not implement interface member 'Fuse.Reactive.ISubscription.ReplaceAllExclusive(Fuse.Scripting.Context,Fuse.IArray)'
1.6 s

Build completed in 3.56 seconds
3 errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.