Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions IOTWifi.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require 'json'

package = JSON.parse(File.read('package.json'))

Pod::Spec.new do |s|
s.name = 'IOTWifi'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.homepage = package['homepage']
s.license = package['license']
s.authors = package['authors']
s.source = { :git => 'https://github.com/tadasr/react-native-iot-wifi.git' }
s.platform = :ios, '10.3'
s.ios.deployment_target = '10.3'
s.source_files = 'ios/**/*.{h,m}'
s.exclude_files = 'android/**/*'
s.exclude_files = 'example/**/*'
s.dependency 'React'
end

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Wifi configuration.
This library was written to config iot devices. With iOS 11 Apple introduced NEHotspotConfiguration class for wifi configuration. Library supports same functionality on ios and android.

## 1.0.1
iOS:
* Add a podspec to support autolinking in React Native versions >= 0.60

Android:
* Update compileSdkVersion to 28

## 1.0.0
* Optional Force binding to a Wifi on both iOS and Android platforms
* Android: Better error handling
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 26
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-iot-wifi",
"version": "1.0.0",
"version": "1.1.0",
"description": "Connect to WiFi with React Native on Android and iOS.",
"main": "index.js",
"types": "index.d.ts",
Expand Down