lotrofans / get_ip_flutter Goto Github PK
View Code? Open in Web Editor NEWA flutter plugin to acquire the users IP adress
License: MIT License
A flutter plugin to acquire the users IP adress
License: MIT License
I have a lot of other imports that work fine, but I get the follow error when I import get_ip. Any thoughts?
Configure project :app
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Configure project :get_ip
WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
*********************************************************
WARNING: This version of connectivity will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
Command: /Users/***/android/gradlew app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.
We are facing issues with some Samsung Series 10 devices (on Android 10) and some Oppo Devices (on Android 7.1.1).
The device wifi settings show that the device is connected with external internet ip address, but we are getting local ip address 10.X.X.X from the library.
Hello !
Thanks for this plugin ! I love it ! Easy to use.
I receive this address ip : 192.168.232.2 when i do this :
String ipAddress = await GetIp.ipAddress;
print(ipAddress);
It's an internal address ip ? Is it possible to get the external address ip ?
Thanks
Hello,
I used Flutter with Android Studio.
I try to recover the IP address, but when using :
String ipAddress = await GetIp.ipAddress;
I get the following error:
Unhandled Exception: MissingPluginException(No implementation found for method getIp6Adress on channel get_ip).
I added in the dependencies :
get_ip: ^0.4.0
I have pub get ,
and uses the import :
import 'package:get_ip/get_ip.dart';
i'm new to flutter , i cant built my app for IOS because get_ip plugin giving #import <get_ip/get_ip-Swift.h> file not found error
Hi! Thank you for your good job. I try to use your plugin in the flutter module and have a warning above: The plugin get_ip
is built using an older version of the Android plugin API which assumes that it's running in a full-Flutter environment. It may have
undefined behaviors when Flutter is integrated into an existing app as a module. The plugin can be updated to the v2 Android Plugin APIs by following https://flutter.dev/go/android-plugin-migration. Can you do it upgrade?
Hi, I'm trying to run my project in release mode. I get the following error message:
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':get_ip:verifyReleaseResources'.java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users//Desktop/Source/Flutter//build/get_ip/intermediates/res/merged/release/values/values.xml:236: error: resource android:attr/fontVariationSettings not found.
/Users//Desktop/Source/Flutter//build/get_ip/intermediates/res/merged/release/values/values.xml:237: error: resource android:attr/ttcIndex not found.
error: failed linking references.
My flutter doctor results:
[✓] Flutter (Channel master, v1.10.15-pre.330, on Mac OS X 10.15 19A602, locale el-GR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.39.2)
[✓] Connected device (3 available)• No issues found!
I use AndroidX migration. In debug mode, everything works fine!
Thanks!
When trying to build on mac, within android studio, i`m getting below error:
[!] Unable to determine Swift version for the following pods:
- `get_ip` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set.
Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
During the apk release build, i got errors with locale merges. Does this have to do because the new version of flutter supports more locales?
My project will fail to build when I add "get_ip: 0.2.0" to the yaml file. I have many other packages which are working fine.
I am however able to build in debug mode.
Help will be appreciated.
This is my error log:
FAILURE: Build failed with an exception.
Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
Could not resolve project :get_ip.
Required by:
project :app
> java.lang.NullPointerException (no error message)
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 7s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 7.7s
Gradle task assembleRelease failed with exit code 1
Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v1.3.8, on Microsoft Windows [Version 10.0.17763.379], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[!] VS Code (version 1.32.3)
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (1 available)
! Doctor found issues in 1 category.
In android 6-8 I am not getting the IP when the internet is off but ehen I am using the same in android 8+ device then IP is returned even if there is no interest connection
when i use GetIp.ipv6Address,it return a useless ipv6 ip address like:
fe80:3de1.................
but i had a useful address
Im trying to get the local ip address in a Flutter Web app. I use get_ip 0.4.0 - (it states it is working under flutter web).
I have this function (basicaly copied your example):
Future initPlatformState() async {
print("Test");
String ipAddress;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
ipAddress = await GetIp.ipAddress;
} on PlatformException {
ipAddress = 'Failed to get ipAddress.';
} on Exception {
print("Exception");
}
print("Ip: $ipAddress");
}
and i call it in initState of main.dart.
The console just has the output "Test", it does not output the ip or "Exception".
I'm running the app on MacOs.
Currently I am not able to get IP on 4g for ios, does anyone have this problem also?
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'get_ip' is using version 1.2.30.
What shall I do?
Hello! First of all thanks for such a great library!
Is it possible to add a feature to get the network mask also?
Best regards!
Device had both but it returned an IPv6 address instead.
Exception has occurred.
MissingPluginException (MissingPluginException(No implementation found for method getIpAdress on channel get_ip))
get_ip_flutter/android/src/main/kotlin/de/pdad/getip/GetIpPlugin.kt
Lines 53 to 55 in 40aa9be
This should probably be changed...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.