dotintent / FlutterBleLib

Bluetooth Low Energy library for Flutter with support for simulating peripherals
Apache License 2.0
540 stars 199 forks source link

Installation guide #409

Closed lukerayman closed 4 years ago

lukerayman commented 4 years ago

I have added installation guide for both Android and iOS. It is quite detailed because I assumed that some Flutter developers may not have much experience in native development for both platform.

Preview: https://github.com/Polidea/FlutterBleLib/tree/docs/installation

Some of the changes come from auto-formatter in Visual Studio Code.

lukerayman commented 4 years ago

I removed all the unnecessary installation steps. For Android there is just info about changing min SDK version. I checked in 3 different projects and it works.

dariuszseweryn commented 4 years ago

If removing minSdk is a must for Flutter lib then we could use this approach but we should then add some graceful handling of such situation.

lukerayman commented 4 years ago

Why to remove minSDK?

dariuszseweryn commented 4 years ago

Dunno, to make the integration easier ;P To be honest I do think that the user would need to specify the minSdk at all. It should be merged properly rxandroidble => mba => flutter_ble_lib => user's app. Doesn't it?

lukerayman commented 4 years ago

Do you mean removing minSdkVersion completely? I just checked it and it looks like the default value is 1, so still the same error. 😄 I think we can't get rid of it until Flutter changes its Android project template.

dariuszseweryn commented 4 years ago

minSdk should be 18 because of using MBA which uses RxAndroidBle which states minSdk 18. I will come to you