更换极光推送key
This commit is contained in:
parent
d3915a92a0
commit
fb164ccb15
@ -37,8 +37,8 @@ android {
|
|||||||
applicationId "com.arpa.hndahesudintocctmsdriver"
|
applicationId "com.arpa.hndahesudintocctmsdriver"
|
||||||
minSdkVersion 23
|
minSdkVersion 23
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 60
|
versionCode 61
|
||||||
versionName "3.3.0"
|
versionName "3.3.1"
|
||||||
flavorDimensions "CHANNEL_VALUE"
|
flavorDimensions "CHANNEL_VALUE"
|
||||||
flavorDimensions "app_icon"
|
flavorDimensions "app_icon"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
@ -101,7 +101,7 @@ android {
|
|||||||
app_icon : "@drawable/diver_logo_text",
|
app_icon : "@drawable/diver_logo_text",
|
||||||
GAODEKEY : "6791d69f6221a0841b521763af86eb01",
|
GAODEKEY : "6791d69f6221a0841b521763af86eb01",
|
||||||
JPUSH_PKGNAME: applicationId,
|
JPUSH_PKGNAME: applicationId,
|
||||||
JPUSH_APPKEY : "571d93ae5117da6dee848c92", //JPush 上注册的包名对应的 Appkey.
|
JPUSH_APPKEY : "fba6f55621c670d8c1fe9191", //JPush 上注册的包名对应的 Appkey.
|
||||||
JPUSH_CHANNEL: "developer-default"//暂时填写默认值即可.
|
JPUSH_CHANNEL: "developer-default"//暂时填写默认值即可.
|
||||||
]
|
]
|
||||||
buildConfigField("String", "OPEN_AL_URL", "\"https://oapi-staging.alct56.com\"")
|
buildConfigField("String", "OPEN_AL_URL", "\"https://oapi-staging.alct56.com\"")
|
||||||
@ -116,7 +116,7 @@ android {
|
|||||||
app_icon : "@drawable/diver_logo",
|
app_icon : "@drawable/diver_logo",
|
||||||
GAODEKEY : "78019612271411eca3af34db91930620",
|
GAODEKEY : "78019612271411eca3af34db91930620",
|
||||||
JPUSH_PKGNAME: applicationId,
|
JPUSH_PKGNAME: applicationId,
|
||||||
JPUSH_APPKEY : "571d93ae5117da6dee848c92", //JPush 上注册的包名对应的 Appkey.
|
JPUSH_APPKEY : "fba6f55621c670d8c1fe9191", //JPush 上注册的包名对应的 Appkey.
|
||||||
JPUSH_CHANNEL: "developer-default"//暂时填写默认值即可.
|
JPUSH_CHANNEL: "developer-default"//暂时填写默认值即可.
|
||||||
]
|
]
|
||||||
buildConfigField("String", "OPEN_AL_URL", "\"https://oapi.alct56.com\"")
|
buildConfigField("String", "OPEN_AL_URL", "\"https://oapi.alct56.com\"")
|
||||||
|
@ -274,7 +274,7 @@
|
|||||||
<!-- 极光-->
|
<!-- 极光-->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="JPUSH_APPKEY"
|
android:name="JPUSH_APPKEY"
|
||||||
android:value="571d93ae5117da6dee848c92" /> <!-- </>值来自开发者平台取得的AppKey -->
|
android:value="fba6f55621c670d8c1fe9191" /> <!-- </>值来自开发者平台取得的AppKey -->
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="JPUSH_CHANNEL"
|
android:name="JPUSH_CHANNEL"
|
||||||
|
@ -10,6 +10,7 @@ import android.util.Log;
|
|||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
|
import com.arpa.hndahesudintocctmsdriver.R;
|
||||||
import com.arpa.hndahesudintocctmsdriver.request.HuoYuanRequset;
|
import com.arpa.hndahesudintocctmsdriver.request.HuoYuanRequset;
|
||||||
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
||||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequsetCodeConstants;
|
import com.arpa.hndahesudintocctmsdriver.util.http.RequsetCodeConstants;
|
||||||
@ -27,11 +28,14 @@ public class MakeUpService extends Service {
|
|||||||
public void palyMp3(){
|
public void palyMp3(){
|
||||||
Log.e("开始播放","-----");
|
Log.e("开始播放","-----");
|
||||||
try {
|
try {
|
||||||
AssetFileDescriptor fd =getAssets().openFd("kujp9scu.mp3");
|
MediaPlayer mediaPlayer = MediaPlayer.create(this, R.raw.kujp9scu);
|
||||||
mediaPlayer.setDataSource(fd);
|
mediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
|
||||||
mediaPlayer.setLooping(false);//设置为循环播放
|
@Override
|
||||||
mediaPlayer.prepare();//初始化播放器MediaPlayer
|
public void onPrepared(MediaPlayer mediaPlayer) {
|
||||||
mediaPlayer.start();
|
mediaPlayer.start();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mediaPlayer.prepareAsync();
|
||||||
Log.e("播放成功","-----");
|
Log.e("播放成功","-----");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user