Skip to content

Commit 9884cfc

Browse files
committed
Merge pull request #48 from Liuchy1/master
fix jpush client
2 parents ad352bc + 2f572f0 commit 9884cfc

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/main/java/cn/jpush/api/JPushClient.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -144,30 +144,6 @@ public JPushClient(String masterSecret, String appKey, int maxRetryTimes, HttpPr
144144
_scheduleClient = new ScheduleClient(masterSecret, appKey, proxy, conf);
145145
_pushClient.setDefaults(apnsProduction, timeToLive);
146146

147-
}
148-
149-
/**
150-
* Create a JPush Client by custom Client configuration with global settings.
151-
*
152-
* If you are using JPush privacy cloud, and you want different settings from default globally,
153-
* maybe this constructor is what you needed.
154-
* This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setGlobalPushSetting} instead of this constructor.
155-
*
156-
* @param masterSecret API access secret of the appKey.
157-
* @param appKey The KEY of one application on JPush.
158-
* @param proxy The proxy, if there is no proxy, should be null.
159-
* @param conf The client configuration. Can use ClientConfig.getInstance() as default.
160-
* @param apnsProduction Global APNs environment setting. It will override PushPayload Options.
161-
* @param timeToLive Global time_to_live setting. It will override PushPayload Options.
162-
*/
163-
@Deprecated
164-
public JPushClient(String masterSecret, String appKey, HttpProxy proxy, ClientConfig conf,
165-
boolean apnsProduction, long timeToLive) {
166-
_pushClient = new PushClient(masterSecret, appKey, proxy, conf);
167-
_reportClient = new ReportClient(masterSecret, appKey, proxy, conf);
168-
_deviceClient = new DeviceClient(masterSecret, appKey, proxy, conf);
169-
_scheduleClient = new ScheduleClient(masterSecret, appKey, proxy, conf);
170-
_pushClient.setDefaults(apnsProduction, timeToLive);
171147
}
172148

173149
/**

0 commit comments

Comments
 (0)