Commit ca6aece8 authored by 汪林玲's avatar 汪林玲

更新

parent d6b2f3b9
...@@ -34,12 +34,6 @@ public class Handler { ...@@ -34,12 +34,6 @@ public class Handler {
ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clipData = ClipData.newPlainText(null, text); ClipData clipData = ClipData.newPlainText(null, text);
clipboard.setPrimaryClip(clipData); clipboard.setPrimaryClip(clipData);
try {
if(TextUtils.isEmpty(text)){
clipboard.clearPrimaryClip();
}
}catch (Exception e){
}
} }
......
...@@ -73,7 +73,7 @@ packages: ...@@ -73,7 +73,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "1.0.2" version: "1.0.6"
matcher: matcher:
dependency: transitive dependency: transitive
description: description:
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'fluttet_clipboard' s.name = 'fluttet_clipboard'
s.version = '0.0.1' s.version = '1.0.6'
s.summary = 'A new Flutter plugin.' s.summary = 'A new Flutter plugin.'
s.description = <<-DESC s.description = <<-DESC
A new Flutter plugin. A new Flutter plugin.
......
name: fluttet_clipboard name: fluttet_clipboard
description: Android粘贴处理. description: Android粘贴处理.
version: 1.0.2 version: 1.0.6
author: author:
homepage: homepage:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment