-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
146 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
android/src/main/java/com/damoness/rn/umeng/ConfigureModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.damoness.rn.umeng; | ||
import com.facebook.react.bridge.ReactApplicationContext; | ||
import com.facebook.react.bridge.ReactContextBaseJavaModule; | ||
|
||
import com.facebook.react.bridge.ReactMethod; | ||
import com.umeng.commonsdk.UMConfigure; | ||
import com.umeng.socialize.PlatformConfig; | ||
|
||
public class ConfigureModule extends ReactContextBaseJavaModule { | ||
|
||
|
||
private ReactApplicationContext context; | ||
public ConfigureModule(ReactApplicationContext reactContext) { | ||
super(reactContext); | ||
context = reactContext; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "DMNConfigure"; | ||
} | ||
|
||
|
||
@ReactMethod | ||
public void initApp(String appKey,String channel){ | ||
//初始化 | ||
UMConfigure.init(this.getReactApplicationContext(),appKey,channel,UMConfigure.DEVICE_TYPE_PHONE,""); | ||
} | ||
|
||
|
||
@ReactMethod | ||
public void setWeChat(String appKey,String appSecret){ | ||
// 微信设置 | ||
PlatformConfig.setWeixin(appKey,appSecret); | ||
PlatformConfig.setWXFileProvider("com.tencent.sample2.fileprovider"); | ||
|
||
} | ||
|
||
|
||
@ReactMethod | ||
public void setWeChatWork(String appKey,String corpId,String agentId){ | ||
// 企业微信设置 | ||
PlatformConfig.setWXWork(corpId,"",agentId,appKey); | ||
PlatformConfig.setWXWorkFileProvider("com.tencent.sample2.fileprovider"); | ||
} | ||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
android/src/main/java/com/damoness/rn/umeng/RNUMConfigure.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// analytics.h | ||
// analytics | ||
// | ||
// Created by Damoness on 26/02/2022. | ||
// Copyright © 2017 Facebook. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <React/RCTBridgeModule.h> | ||
@interface DMNAnalyticsModule : NSObject <RCTBridgeModule> | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
// | ||
// RNUMConfigure.h | ||
// UMComponent | ||
// DMNConfigure.h | ||
// | ||
// Created by wyq.Cloudayc on 14/09/2017. | ||
// Created by Damoness on 26/02/2022. | ||
// Copyright © 2017 Facebook. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <UMCommon/UMCommon.h> | ||
#import <React/RCTBridgeModule.h> | ||
|
||
@interface RNUMConfigure : NSObject <RCTBridgeModule> | ||
@interface DMNConfigure : NSObject <RCTBridgeModule> | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
// | ||
// PushModule.h | ||
// UMComponent | ||
// | ||
// Created by wyq.Cloudayc on 11/09/2017. | ||
// Created by Damoness on 26/02/2022. | ||
// Copyright © 2017 Facebook. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <React/RCTBridgeModule.h> | ||
|
||
@interface UMPushModule : NSObject <RCTBridgeModule> | ||
@interface DMNPushModule : NSObject <RCTBridgeModule> | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.