Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
6414b1c7
Commit
6414b1c7
authored
Aug 30, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用文件
parent
57760826
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
280 deletions
+0
-280
android/src/main/java/com/idlefish/flutterboost/interfaces/NavigationService/NavigationService_flutterCanPop.java
...es/NavigationService/NavigationService_flutterCanPop.java
+0
-52
android/src/main/java/com/taobao/idlefish/flutterboost/NavigationService/NavigationServiceRegister.java
...terboost/NavigationService/NavigationServiceRegister.java
+0
-39
android/src/main/java/com/taobao/idlefish/flutterboost/containers/BoostFlutterActivity.java
...dlefish/flutterboost/containers/BoostFlutterActivity.java
+0
-189
No files found.
android/src/main/java/com/idlefish/flutterboost/interfaces/NavigationService/NavigationService_flutterCanPop.java
deleted
100644 → 0
View file @
57760826
package
com.taobao.idlefish.flutterboost.NavigationService
;
import
android.util.Log
;
import
com.taobao.idlefish.flutterboost.FlutterBoostPlugin
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
fleamarket.taobao.com.xservicekit.handler.MessageHandler
;
import
fleamarket.taobao.com.xservicekit.handler.MessageResult
;
import
fleamarket.taobao.com.xservicekit.service.ServiceGateway
;
public
class
NavigationService_flutterCanPop
implements
MessageHandler
<
Boolean
>{
private
Object
mContext
=
null
;
private
boolean
onCall
(
MessageResult
<
Boolean
>
result
,
Boolean
canPop
){
return
true
;
}
@Override
public
boolean
onMethodCall
(
String
name
,
Map
args
,
MessageResult
<
Boolean
>
result
)
{
return
this
.
onCall
(
result
,(
Boolean
)
args
.
get
(
"canPop"
));
}
@Override
public
List
<
String
>
handleMessageNames
()
{
List
<
String
>
h
=
new
ArrayList
<>();
h
.
add
(
"flutterCanPop"
);
return
h
;
}
@Override
public
Object
getContext
()
{
return
mContext
;
}
@Override
public
void
setContext
(
Object
obj
)
{
mContext
=
obj
;
}
@Override
public
String
service
()
{
return
"NavigationService"
;
}
public
static
void
register
(){
ServiceGateway
.
sharedInstance
().
registerHandler
(
new
NavigationService_flutterCanPop
());
}
}
\ No newline at end of file
android/src/main/java/com/taobao/idlefish/flutterboost/NavigationService/NavigationServiceRegister.java
deleted
100755 → 0
View file @
57760826
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Alibaba Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package
com.taobao.idlefish.flutterboost.NavigationService
;
public
class
NavigationServiceRegister
{
public
static
void
register
(){
NavigationService
.
register
();
NavigationService_onShownContainerChanged
.
register
();
NavigationService_onFlutterPageResult
.
register
();
NavigationService_pageOnStart
.
register
();
NavigationService_openPage
.
register
();
NavigationService_closePage
.
register
();
NavigationService_flutterCanPop
.
register
();
}
}
\ No newline at end of file
android/src/main/java/com/taobao/idlefish/flutterboost/containers/BoostFlutterActivity.java
deleted
100755 → 0
View file @
57760826
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Alibaba Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package
com.taobao.idlefish.flutterboost.containers
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.os.Bundle
;
import
android.view.Gravity
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.Window
;
import
android.widget.FrameLayout
;
import
android.widget.ProgressBar
;
import
com.taobao.idlefish.flutterboost.BoostFlutterView
;
import
com.taobao.idlefish.flutterboost.FlutterBoostPlugin
;
import
com.taobao.idlefish.flutterboost.interfaces.IFlutterViewContainer
;
import
java.util.HashMap
;
import
java.util.Map
;
import
io.flutter.app.FlutterActivity
;
import
io.flutter.view.FlutterNativeView
;
import
io.flutter.view.FlutterView
;
abstract
public
class
BoostFlutterActivity
extends
FlutterActivity
implements
IFlutterViewContainer
{
private
FlutterContent
mFlutterContent
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
getWindow
().
requestFeature
(
Window
.
FEATURE_NO_TITLE
);
super
.
onCreate
(
savedInstanceState
);
mFlutterContent
=
new
FlutterContent
(
this
);
setContentView
(
mFlutterContent
);
FlutterBoostPlugin
.
containerManager
().
onContainerCreate
(
this
);
onRegisterPlugins
(
this
);
}
@Override
protected
void
onPostResume
()
{
super
.
onPostResume
();
FlutterBoostPlugin
.
containerManager
().
onContainerAppear
(
BoostFlutterActivity
.
this
);
mFlutterContent
.
attachFlutterView
(
getBoostFlutterView
());
}
@Override
protected
void
onPause
()
{
mFlutterContent
.
detachFlutterView
();
FlutterBoostPlugin
.
containerManager
().
onContainerDisappear
(
this
);
super
.
onPause
();
}
@Override
protected
void
onDestroy
()
{
FlutterBoostPlugin
.
containerManager
().
onContainerDestroy
(
this
);
mFlutterContent
.
destroy
();
super
.
onDestroy
();
}
public
FlutterView
createFlutterView
(
Context
context
)
{
return
FlutterBoostPlugin
.
viewProvider
().
createFlutterView
(
this
);
}
@Override
public
FlutterNativeView
createFlutterNativeView
()
{
return
FlutterBoostPlugin
.
viewProvider
().
createFlutterNativeView
(
this
);
}
@Override
public
boolean
retainFlutterNativeView
()
{
return
true
;
}
protected
View
createSplashScreenView
()
{
FrameLayout
frameLayout
=
new
FrameLayout
(
this
);
FrameLayout
.
LayoutParams
params
=
new
FrameLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
params
.
gravity
=
Gravity
.
CENTER
;
frameLayout
.
addView
(
new
ProgressBar
(
this
),
params
);
return
frameLayout
;
}
protected
View
createFlutterInitCoverView
()
{
View
initCover
=
new
View
(
this
);
initCover
.
setBackgroundColor
(
Color
.
WHITE
);
return
initCover
;
}
@Override
public
void
onContainerShown
()
{
mFlutterContent
.
onContainerShown
();
}
@Override
public
void
onContainerHidden
()
{
mFlutterContent
.
onContainerHidden
();
}
@Override
public
void
onBackPressed
()
{
FlutterBoostPlugin
.
containerManager
().
onBackPressed
(
this
);
}
@Override
public
Activity
getActivity
()
{
return
this
;
}
@Override
public
BoostFlutterView
getBoostFlutterView
()
{
return
(
BoostFlutterView
)
getFlutterView
();
}
@Override
public
void
destroyContainer
()
{
finish
();
}
@Override
public
abstract
String
getContainerName
();
@Override
public
abstract
Map
getContainerParams
();
@Override
public
void
setBoostResult
(
HashMap
result
)
{
FlutterBoostPlugin
.
setBoostResult
(
this
,
result
);
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
//防止imagepick等回调数据被拦截
if
(
data
!=
null
&&
data
.
hasExtra
(
IFlutterViewContainer
.
RESULT_KEY
)){
FlutterBoostPlugin
.
onBoostResult
(
this
,
requestCode
,
resultCode
,
data
);
}
else
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
}
}
class
FlutterContent
extends
FlutterViewStub
{
public
FlutterContent
(
Context
context
)
{
super
(
context
);
}
@Override
public
View
createFlutterInitCoverView
()
{
return
BoostFlutterActivity
.
this
.
createFlutterInitCoverView
();
}
@Override
public
BoostFlutterView
getBoostFlutterView
()
{
return
BoostFlutterActivity
.
this
.
getBoostFlutterView
();
}
@Override
public
View
createSplashScreenView
()
{
return
BoostFlutterActivity
.
this
.
createSplashScreenView
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment