blob: 96c7716f722b7825c753e470d9088626cc8da6b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.juick.components.configuration;
import com.google.android.gcm.server.Endpoint;
import com.google.android.gcm.server.Sender;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Created by vital on 29.03.2017.
*/
@Configuration
public class GCMConfiguration {
@Value("${gcm_key}")
private String gcmKey;
@Bean
public Sender GCMSender() {
return new Sender(gcmKey, Endpoint.GCM);
}
}
|