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
006cd91c
Commit
006cd91c
authored
Apr 08, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
channel test
parent
b71f7437
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
12 deletions
+22
-12
build.gradle
+9
-7
src/main/java/com/common/broadcast/InstallReferrerReceiver.java
+5
-2
src/main/java/tech/starwin/LibConfig.java
+8
-3
No files found.
build.gradle
View file @
006cd91c
...
...
@@ -116,11 +116,14 @@ dependencies {
//facebook accountKit SDK
api
'com.facebook.android:account-kit-sdk:4.37.0'
// //kochava
// api 'com.kochava.base:tracker:3.6.0'
// //Optional: Instant App Status Collection
// api 'com.google.android.instantapps:instantapps:1.1.0'
//SDK-CHANNEL-START
//kochava
api
'com.kochava.base:tracker:3.6.0'
//Optional: Instant App Status Collection
api
'com.google.android.instantapps:instantapps:1.1.0'
//mixpanel
api
'com.mixpanel.android:mixpanel-android:5.+'
//SDK-CHANNEL-END
//魔蝎
// api 'com.moxie:moxie-client-inter:1.1.6.2'
...
...
@@ -131,8 +134,7 @@ dependencies {
//AppsFlyer
// api 'com.appsflyer:af-android-sdk:4+@aar'
//mixpanel
// api 'com.mixpanel.android:mixpanel-android:5.+'
//zendesk
api
group:
'com.zendesk'
,
name:
'support'
,
version:
'2.1.1'
...
...
src/main/java/com/common/broadcast/InstallReferrerReceiver.java
View file @
006cd91c
...
...
@@ -24,8 +24,11 @@ import tech.starwin.utils.event_bus.EventSender;
public
class
InstallReferrerReceiver
extends
BroadcastReceiver
{
public
void
onReceive
(
Context
context
,
Intent
data
)
{
// new com.mixpanel.android.mpmetrics.InstallReferrerReceiver().onReceive(context, data);
// new com.kochava.base.ReferralReceiver().onReceive(context, data);
//SDK-CHANNEL-START
new
com
.
mixpanel
.
android
.
mpmetrics
.
InstallReferrerReceiver
().
onReceive
(
context
,
data
);
new
com
.
kochava
.
base
.
ReferralReceiver
().
onReceive
(
context
,
data
);
//SDK-CHANNEL-END
PreferencesManager
.
get
().
saveInstallReferrer
(
getReferrerValue
(
data
.
getExtras
()));
}
...
...
src/main/java/tech/starwin/LibConfig.java
View file @
006cd91c
...
...
@@ -93,6 +93,7 @@ public class LibConfig {
return
CONTEXT
;
}
/**
* 初始化 BaseLibrary
*/
...
...
@@ -111,8 +112,13 @@ public class LibConfig {
LibConfig
.
ROOT_DIR
=
LibConfig
.
APP_NAME
;
}
// public static final String MIXPANEL_TOKEN = "8d7cc843b3c027ccab6288e55d99edbc";
// MixpanelAPI.getInstance(application, MIXPANEL_TOKEN);
//SDK-CHANNEL-START
com
.
mixpanel
.
android
.
mpmetrics
.
MixpanelAPI
.
getInstance
(
application
,
"8d7cc843b3c027ccab6288e55d99edbc"
);
com
.
kochava
.
base
.
Tracker
.
configure
(
new
com
.
kochava
.
base
.
Tracker
.
Configuration
(
application
)
.
setAppGuid
(
"kobackup-master-oxv8ltm"
)
);
//SDK-CHANNEL-END
//屏幕适配(360dp宽度限定)
...
...
@@ -184,7 +190,6 @@ public class LibConfig {
}
/**
* 用于在Base 中 实现Butterknife.bind()的功能
*
...
...
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