Comments (11)
@jaeklim none of @sindresorhus has suggested requires you to use Swift directly.
This can all be done by properly structuring your Objective-C API using properties (both instance and class properties). I'll draw up a PR with at least what @sindresorhus has suggested above as an exemplar.
from appcenter-sdk-apple.
The feature has been released in 4.0.0 version of App Center.
from appcenter-sdk-apple.
@sindresorhus thanks for the suggestion. We are always open to the ways to improve the SDK.
from appcenter-sdk-apple.
@sindresorhus I appreciate your suggestion for Swift methods of App Center SDK. Unfortunately, it is not in our immediate plan to support it. We will keep this thread open for developers to comment and vote, and keep you posted once we decide to work on it.
from appcenter-sdk-apple.
@tonyarnold sure, feel free to create PR.
from appcenter-sdk-apple.
Thanks for bumping up the topic and submitting a PR @tonyarnold . This is indeed some good improvements we can take, we are welcoming contributions. Weβll review the PR. FYI among other thing we are looking at to approve a PR is the consistency between modules particularly because this topic impacts all modules. If any breaking change is to be added it should be added in a separate PR because itβll probably stack up until the next SDK major version will show up. If we think we need to iterate on this we can create feature branches.
from appcenter-sdk-apple.
Please pass on my thanks to your team, @AnastasiaKubova π
from appcenter-sdk-apple.
Really nice work on this everyone.
I did notice one thing though. It went from MSAppCenter.isEnabled()
to AppCenter.enabled
. This should be AppCenter.isEnabled
.
from appcenter-sdk-apple.
Hi @sindresorhus!
We are glad that you like our work! What about your note we were considering both options and decide to write it this way. Here you can found our PR, with discussion. The main idea was consistency between ObjC and Swift code. We use AppCenter.enabled as a name for property and is_
and set_
as prefixes for getters and setters.
from appcenter-sdk-apple.
The whole point was to swiftify the API, meaning less consistency between Swift and Objective-C. Why not do it 100%?
from appcenter-sdk-apple.
@sindresorhus, we considered and discussed it thoroughly within the team while doing these changes, and it was decided to use enabled
in Swift as this property is mutable.
I'm sorry to inform you that, but we are not planning to do any updates related to Swift-friendly API.
from appcenter-sdk-apple.
Related Issues (20)
- Update App Center SDK to include privacy manifest HOT 10
- Spawning lots of short lived threads when initialising `MSACCrashes` instance HOT 16
- Enable App Center will cause SwiftUI's accent color to disappear. HOT 7
- error: Signing for "AppCenter_AppCenterDistribute" requires a development team. HOT 3
- Unclear how to determine current AppCenter Distribute project HOT 4
- Add documentation for dataResidencyRegion HOT 3
- Crash at launch on macOS 11 ARM64 - setupLogBuffer HOT 3
- Crashes.trackError always shows MSACExceptionModel.initWithError: as the exception HOT 5
- trackError and trackException do not parse call stack correctly HOT 2
- Protobuf: could not find object file symbol for symbol HOT 20
- Slow network requests HOT 1
- Freeze on iOS Platform When App Crashes in KMM Project HOT 3
- AppCenter metrics and crash report errors. HOT 2
- Callbacks for PLCrashReporter are not exposed, resulting in an inability to flush logs HOT 1
- Need a way to push log immediately HOT 1
- Missing NSPrivacyAccessedAPITypeReasons in App Privacy Manifest. HOT 2
- AppCenter Podspec doesn't include the xcprivacy files HOT 8
- Build failed due to AppCenter not found error HOT 1
- Any Crash Report/Analytics Alternatives? HOT 2
- Privacy manifest formats are invalid and use wrong codes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appcenter-sdk-apple.