Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
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
0
Merge Requests
0
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
sheteng
com.ccwangluo.accelerator
Commits
b4937785
Commit
b4937785
authored
Jan 24, 2014
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tag manager
parent
c133930b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala
...scala/com/github/shadowsocks/ShadowsocksApplication.scala
+12
-0
No files found.
src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala
View file @
b4937785
...
@@ -42,9 +42,13 @@ import android.app.Application
...
@@ -42,9 +42,13 @@ import android.app.Application
import
com.github.shadowsocks.database.DBHelper
import
com.github.shadowsocks.database.DBHelper
import
com.google.tagmanager.
{
Container
,
ContainerOpener
,
TagManager
}
import
com.google.tagmanager.
{
Container
,
ContainerOpener
,
TagManager
}
import
com.google.tagmanager.ContainerOpener.
{
Notifier
,
OpenType
}
import
com.google.tagmanager.ContainerOpener.
{
Notifier
,
OpenType
}
import
com.google.tagmanager.Container.FunctionCallMacroHandler
import
java.util
import
com.github.shadowsocks.utils.Utils
class
ShadowsocksApplication
extends
Application
{
class
ShadowsocksApplication
extends
Application
{
lazy
val
dbHelper
=
new
DBHelper
(
this
)
lazy
val
dbHelper
=
new
DBHelper
(
this
)
lazy
val
SIG_FUNC
=
"getSignature"
var
tagContainer
:
Container
=
null
var
tagContainer
:
Container
=
null
override
def
onCreate
()
{
override
def
onCreate
()
{
...
@@ -52,6 +56,14 @@ class ShadowsocksApplication extends Application {
...
@@ -52,6 +56,14 @@ class ShadowsocksApplication extends Application {
ContainerOpener
.
openContainer
(
tm
,
BuildConfig
.
CONTAINER_ID
,
OpenType
.
PREFER_NON_DEFAULT
,
null
,
new
Notifier
{
ContainerOpener
.
openContainer
(
tm
,
BuildConfig
.
CONTAINER_ID
,
OpenType
.
PREFER_NON_DEFAULT
,
null
,
new
Notifier
{
override
def
containerAvailable
(
container
:
Container
)
{
override
def
containerAvailable
(
container
:
Container
)
{
tagContainer
=
container
tagContainer
=
container
container
.
registerFunctionCallMacroHandler
(
SIG_FUNC
,
new
FunctionCallMacroHandler
{
def
getValue
(
functionName
:
String
,
parameters
:
util.Map
[
String
,
AnyRef
])
:
AnyRef
=
{
if
(
functionName
==
SIG_FUNC
)
{
Utils
.
getSignature
(
getApplicationContext
)
}
null
}
})
}
}
})
})
}
}
...
...
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