Giter Site home page Giter Site logo

Comments (11)

tonyarnold avatar tonyarnold commented on May 18, 2024 3

@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.

AnastasiaKubova avatar AnastasiaKubova commented on May 18, 2024 2

The feature has been released in 4.0.0 version of App Center.

from appcenter-sdk-apple.

annakocheshkova avatar annakocheshkova commented on May 18, 2024

@sindresorhus thanks for the suggestion. We are always open to the ways to improve the SDK.

from appcenter-sdk-apple.

jaeklim avatar jaeklim commented on May 18, 2024

@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.

Jamminroot avatar Jamminroot commented on May 18, 2024

@tonyarnold sure, feel free to create PR.

from appcenter-sdk-apple.

iamclement avatar iamclement commented on May 18, 2024

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.

tonyarnold avatar tonyarnold commented on May 18, 2024

Please pass on my thanks to your team, @AnastasiaKubova 😁

from appcenter-sdk-apple.

sindresorhus avatar sindresorhus commented on May 18, 2024

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.

vvechkanov avatar vvechkanov commented on May 18, 2024

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.

sindresorhus avatar sindresorhus commented on May 18, 2024

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.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on May 18, 2024

@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)

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.