Skip to content

Commit 76d34bb

Browse files
committed
refactor: removed pubspec.lock
refactor: removed .idea folder
feat: fix not locked when open another view with app_launcher
1 parent c1d70fd commit 76d34bb

24 files changed

+336
-529
lines changed

.gitignore

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,46 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
16
.DS_Store
2-
.dart_tool/
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
317

18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
# .vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
**/ios/Flutter/.last_build_id
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
429
.packages
30+
.pub-cache/
531
.pub/
32+
/build/
633

7-
build/
34+
# Symbolication related
35+
app.*.symbols
836

9-
# IntelliJ
10-
*.iml
11-
.idea/workspace.xml
12-
.idea/tasks.xml
13-
.idea/gradle.xml
14-
.idea/assetWizardSettings.xml
15-
.idea/dictionaries
16-
.idea/libraries
17-
.idea/caches
37+
# Obfuscation related
38+
app.*.map.json
1839

40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release
1944

2045
#Ignore thumbnails created by Windows
2146
Thumbs.db

.idea/misc.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/runConfigurations/example_lib_main_dart.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/workspace.xml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.metadata

Lines changed: 0 additions & 10 deletions
This file was deleted.

android/src/main/kotlin/org/jezequel/secure_application/SecureApplicationPlugin.kt

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class SecureApplicationPlugin: FlutterPlugin, MethodCallHandler, Activity
5050
}
5151

5252

53-
override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
53+
override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
5454
instance = SecureApplicationPlugin()
5555
val channel = MethodChannel(flutterPluginBinding.binaryMessenger, "secure_application")
5656
channel.setMethodCallHandler(instance)
@@ -78,18 +78,26 @@ public class SecureApplicationPlugin: FlutterPlugin, MethodCallHandler, Activity
7878
}
7979
}
8080

81-
override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
82-
if (call.method == "secure") {
83-
activity?.window?.addFlags(LayoutParams.FLAG_SECURE)
84-
result.success(true)
85-
} else if (call.method == "open") {
86-
activity?.window?.clearFlags(LayoutParams.FLAG_SECURE)
87-
result.success(true)
88-
} else {
89-
result.success(true)
81+
override fun onMethodCall(call: MethodCall, result: Result) {
82+
when (call.method) {
83+
"secure" -> {
84+
activity?.window?.addFlags(LayoutParams.FLAG_SECURE)
85+
result.success(true)
86+
}
87+
"open" -> {
88+
activity?.window?.clearFlags(LayoutParams.FLAG_SECURE)
89+
result.success(true)
90+
}
91+
"opacity" -> {
92+
// Implementation available only on ios
93+
result.success(true)
94+
}
95+
else -> {
96+
result.notImplemented()
97+
}
9098
}
9199
}
92100

93-
override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) {
101+
override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
94102
}
95103
}

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Podfile.lock

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,27 @@ PODS:
22
- Flutter (1.0.0)
33
- secure_application (0.0.1):
44
- Flutter
5+
- url_launcher_ios (0.0.1):
6+
- Flutter
57

68
DEPENDENCIES:
79
- Flutter (from `Flutter`)
810
- secure_application (from `.symlinks/plugins/secure_application/ios`)
11+
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
912

1013
EXTERNAL SOURCES:
1114
Flutter:
1215
:path: Flutter
1316
secure_application:
1417
:path: ".symlinks/plugins/secure_application/ios"
18+
url_launcher_ios:
19+
:path: ".symlinks/plugins/url_launcher_ios/ios"
1520

1621
SPEC CHECKSUMS:
17-
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
22+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
1823
secure_application: 27d424e8c2e770f63e38e280b5a51f921aa9b0c8
24+
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
1925

20-
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
26+
PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d
2127

22-
COCOAPODS: 1.10.1
28+
COCOAPODS: 1.12.1

0 commit comments

Comments
 (0)