Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
a8644d9e
Commit
a8644d9e
authored
Apr 09, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
close channel
parent
006cd91c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
build.gradle
+6
-6
script/sdk_manager.py
+2
-2
src/main/java/com/common/broadcast/InstallReferrerReceiver.java
+3
-3
src/main/java/tech/starwin/LibConfig.java
+5
-5
No files found.
build.gradle
View file @
a8644d9e
...
@@ -117,12 +117,12 @@ dependencies {
...
@@ -117,12 +117,12 @@ dependencies {
api
'com.facebook.android:account-kit-sdk:4.37.0'
api
'com.facebook.android:account-kit-sdk:4.37.0'
//SDK-CHANNEL-START
//SDK-CHANNEL-START
//kochava
//
//kochava
api
'com.kochava.base:tracker:3.6.0'
//
api 'com.kochava.base:tracker:3.6.0'
//Optional: Instant App Status Collection
//
//Optional: Instant App Status Collection
api
'com.google.android.instantapps:instantapps:1.1.0'
//
api 'com.google.android.instantapps:instantapps:1.1.0'
//mixpanel
//
//mixpanel
api
'com.mixpanel.android:mixpanel-android:5.+'
//
api 'com.mixpanel.android:mixpanel-android:5.+'
//SDK-CHANNEL-END
//SDK-CHANNEL-END
//魔蝎
//魔蝎
...
...
script/sdk_manager.py
View file @
a8644d9e
...
@@ -49,7 +49,7 @@ print ("params "+sys.argv[1] + " "+sys.argv[2])
...
@@ -49,7 +49,7 @@ print ("params "+sys.argv[1] + " "+sys.argv[2])
for
root
,
dirs
,
files
in
os
.
walk
(
"../../app/src/main"
):
for
root
,
dirs
,
files
in
os
.
walk
(
"../../app/src/main"
):
directory
=
os
.
path
.
join
(
os
.
getcwd
(),
root
)
directory
=
os
.
path
.
join
(
os
.
getcwd
(),
root
)
for
file
in
files
:
for
file
in
files
:
if
file
.
endswith
(
".java"
):
if
file
.
endswith
(
".java"
)
or
file
.
endswith
(
".gradle"
)
:
# get the path of the java file
# get the path of the java file
path
=
os
.
path
.
join
(
directory
,
file
)
path
=
os
.
path
.
join
(
directory
,
file
)
if
sys
.
argv
[
1
]
==
'open'
:
if
sys
.
argv
[
1
]
==
'open'
:
...
@@ -61,7 +61,7 @@ for root, dirs, files in os.walk("../../app/src/main"):
...
@@ -61,7 +61,7 @@ for root, dirs, files in os.walk("../../app/src/main"):
for
root
,
dirs
,
files
in
os
.
walk
(
"../../lib_base/src/main"
):
for
root
,
dirs
,
files
in
os
.
walk
(
"../../lib_base/src/main"
):
directory
=
os
.
path
.
join
(
os
.
getcwd
(),
root
)
directory
=
os
.
path
.
join
(
os
.
getcwd
(),
root
)
for
file
in
files
:
for
file
in
files
:
if
file
.
endswith
(
".java"
):
if
file
.
endswith
(
".java"
)
or
file
.
endswith
(
".gradle"
)
:
# get the path of the java file
# get the path of the java file
path
=
os
.
path
.
join
(
directory
,
file
)
path
=
os
.
path
.
join
(
directory
,
file
)
if
sys
.
argv
[
1
]
==
'open'
:
if
sys
.
argv
[
1
]
==
'open'
:
...
...
src/main/java/com/common/broadcast/InstallReferrerReceiver.java
View file @
a8644d9e
...
@@ -25,9 +25,9 @@ public class InstallReferrerReceiver extends BroadcastReceiver {
...
@@ -25,9 +25,9 @@ public class InstallReferrerReceiver extends BroadcastReceiver {
public
void
onReceive
(
Context
context
,
Intent
data
)
{
public
void
onReceive
(
Context
context
,
Intent
data
)
{
//SDK-CHANNEL-START
//SDK-CHANNEL-START
new
com
.
mixpanel
.
android
.
mpmetrics
.
InstallReferrerReceiver
().
onReceive
(
context
,
data
);
//SDK-CHANNEL-CODE
new com.mixpanel.android.mpmetrics.InstallReferrerReceiver().onReceive(context, data);
new
com
.
kochava
.
base
.
ReferralReceiver
().
onReceive
(
context
,
data
);
//SDK-CHANNEL-CODE
new com.kochava.base.ReferralReceiver().onReceive(context, data);
//SDK-CHANNEL-END
//SDK-CHANNEL-CODE
//SDK-CHANNEL-END
PreferencesManager
.
get
().
saveInstallReferrer
(
getReferrerValue
(
data
.
getExtras
()));
PreferencesManager
.
get
().
saveInstallReferrer
(
getReferrerValue
(
data
.
getExtras
()));
}
}
...
...
src/main/java/tech/starwin/LibConfig.java
View file @
a8644d9e
...
@@ -114,11 +114,11 @@ public class LibConfig {
...
@@ -114,11 +114,11 @@ public class LibConfig {
//SDK-CHANNEL-START
//SDK-CHANNEL-START
com
.
mixpanel
.
android
.
mpmetrics
.
MixpanelAPI
.
getInstance
(
application
,
"8d7cc843b3c027ccab6288e55d99edbc"
);
//SDK-CHANNEL-CODE
com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(application, "8d7cc843b3c027ccab6288e55d99edbc");
com
.
kochava
.
base
.
Tracker
.
configure
(
new
com
.
kochava
.
base
.
Tracker
.
Configuration
(
application
)
//SDK-CHANNEL-CODE
com.kochava.base.Tracker.configure(new com.kochava.base.Tracker.Configuration(application)
.
setAppGuid
(
"kobackup-master-oxv8ltm"
)
//SDK-CHANNEL-CODE
.setAppGuid("kobackup-master-oxv8ltm")
);
//SDK-CHANNEL-CODE
);
//SDK-CHANNEL-END
//SDK-CHANNEL-CODE
//SDK-CHANNEL-END
//屏幕适配(360dp宽度限定)
//屏幕适配(360dp宽度限定)
...
...
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