mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-30 15:13:02 +00:00
Increase basement version and add initial parts of cast-framework-api
This commit is contained in:
parent
107d70080a
commit
f7716698da
22 changed files with 227 additions and 2 deletions
|
@ -44,6 +44,7 @@ android {
|
|||
dependencies {
|
||||
compile project(':play-services-basement')
|
||||
compile project(':play-services-cast-api')
|
||||
compile project(':play-services-cast-framework-api')
|
||||
compile project(':play-services-iid-api')
|
||||
compile project(':play-services-location-api')
|
||||
compile project(':play-services-wearable-api')
|
||||
|
|
|
@ -47,6 +47,6 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:support-v4:23.4.0'
|
||||
compile 'com.android.support:support-v4:24.2.1'
|
||||
compile 'org.microg:safe-parcel:1.4.0'
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.microg.gms.common;
|
||||
|
||||
public class Constants {
|
||||
public static final int MAX_REFERENCE_VERSION = 9683000;
|
||||
public static final int MAX_REFERENCE_VERSION = 10084000;
|
||||
public static final String GMS_PACKAGE_NAME = "com.google.android.gms";
|
||||
public static final String GSF_PACKAGE_NAME = "com.google.android.gsf";
|
||||
public static final String GMS_PACKAGE_SIGNATURE_SHA1 = "38918a453d07199354f8b19af05ec6562ced5788";
|
||||
|
|
46
play-services-cast-framework-api/build.gradle
Normal file
46
play-services-cast-framework-api/build.gradle
Normal file
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Copyright 2013-2015 microG Project Team
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
String getMyVersionName() {
|
||||
def stdout = new ByteArrayOutputStream()
|
||||
if (rootProject.file("gradlew").exists())
|
||||
exec { commandLine 'git', 'describe', '--tags', '--always', '--dirty'; standardOutput = stdout }
|
||||
else // automatic build system, don't tag dirty
|
||||
exec { commandLine 'git', 'describe', '--tags', '--always'; standardOutput = stdout }
|
||||
return stdout.toString().trim().substring(1)
|
||||
}
|
||||
|
||||
group = 'org.microg'
|
||||
version = getMyVersionName()
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk()
|
||||
buildToolsVersion "$androidBuildVersionTools"
|
||||
|
||||
defaultConfig {
|
||||
versionName getMyVersionName()
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_6
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':play-services-basement')
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2013-2015 microG Project Team
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.microg.gms.cast.framework.api">
|
||||
|
||||
<uses-sdk android:minSdkVersion="9" />
|
||||
|
||||
<application />
|
||||
</manifest>
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
parcelable CastOptions;
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
interface ICastConnectionController {
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
import com.google.android.gms.cast.framework.ISessionManager;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
interface ICastContext {
|
||||
Bundle getMergedSelectorAsBundle() = 0;
|
||||
boolean isApplicationVisible() = 1;
|
||||
//void addAppVisibilityListener(IAppVisibilityListener listener) = 2;
|
||||
//void removeAppVisibilityListener(IAppVisibilityListener listener) = 3;
|
||||
ISessionManager getSessionManager() = 4;
|
||||
void destroy() = 5;
|
||||
void onActivityResumed(in IObjectWrapper activity) = 6;
|
||||
void onActivityPaused(in IObjectWrapper activity) = 7;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
interface ICastSession {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
interface IReconnectionService {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
interface ISession {
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
interface ISessionManager {
|
||||
IObjectWrapper getWrappedCurrentSession() = 0;
|
||||
//void addSessionManagerListener(ISessionManagerListener listener) = 1;
|
||||
//void removeSessionManagerListener(ISessionManagerListener listener) = 2;
|
||||
//void addCastStateListener(ICastStateListener listener) = 3;
|
||||
//void removeCastStateListener(ICastStateListener listener) = 4;
|
||||
void endCurrentSession(boolean b, boolean stopCasting) = 5;
|
||||
IObjectWrapper getWrappedThis() = 6;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework;
|
||||
|
||||
interface ISessionProxy {
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
package com.google.android.gms.cast.framework.internal;
|
||||
|
||||
import com.google.android.gms.cast.framework.CastOptions;
|
||||
import com.google.android.gms.cast.framework.ICastConnectionController;
|
||||
import com.google.android.gms.cast.framework.ICastContext;
|
||||
import com.google.android.gms.cast.framework.ICastSession;
|
||||
import com.google.android.gms.cast.framework.IReconnectionService;
|
||||
import com.google.android.gms.cast.framework.ISession;
|
||||
import com.google.android.gms.cast.framework.ISessionProxy;
|
||||
import com.google.android.gms.cast.framework.internal.IMediaRouter;
|
||||
import com.google.android.gms.cast.framework.media.CastMediaOptions;
|
||||
import com.google.android.gms.cast.framework.media.IMediaNotificationService;
|
||||
import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTask;
|
||||
import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTaskProgressPublisher;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
interface ICastDynamiteModule {
|
||||
ICastContext newCastContextImpl(in IObjectWrapper context, in CastOptions options, IMediaRouter router, in Map map) = 0;
|
||||
ISession newSessionImpl(String s1, String s2, ISessionProxy proxy) = 1;
|
||||
ICastSession newCastSessionImpl(in CastOptions options, in IObjectWrapper session, ICastConnectionController controller) = 2;
|
||||
IMediaNotificationService newMediaNotificationServiceImpl(in IObjectWrapper service, in IObjectWrapper castContext, in IObjectWrapper resources, in CastMediaOptions options) = 3;
|
||||
IReconnectionService newReconnectionServiceImpl(in IObjectWrapper service, in IObjectWrapper sessionManager, in IObjectWrapper discoveryManager) = 4;
|
||||
IFetchBitmapTask newFetchBitmapTaskImpl(in IObjectWrapper asyncTask, IFetchBitmapTaskProgressPublisher progressPublisher, int i1, int i2, boolean b1, long l1, int i3, int i4, int i5) = 5;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework.internal;
|
||||
|
||||
interface IMediaRouter {
|
||||
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.cast.framework.media;
|
||||
|
||||
parcelable CastMediaOptions;
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework.media;
|
||||
|
||||
interface IMediaNotificationService {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework.media.internal;
|
||||
|
||||
interface IFetchBitmapTask {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.cast.framework.media.internal;
|
||||
|
||||
interface IFetchBitmapTaskProgressPublisher {
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright 2013-2016 microG Project Team
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.cast.framework;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class CastOptions extends AutoSafeParcelable {
|
||||
|
||||
|
||||
public static Creator<CastOptions> CREATOR = new AutoCreator<CastOptions>(CastOptions.class);
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright 2013-2016 microG Project Team
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.cast.framework.media;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class CastMediaOptions extends AutoSafeParcelable {
|
||||
|
||||
|
||||
public static Creator<CastMediaOptions> CREATOR = new AutoCreator<CastMediaOptions>(CastMediaOptions.class);
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
include ':play-services-basement'
|
||||
include ':play-services-api'
|
||||
include ':play-services-cast-api'
|
||||
include ':play-services-cast-framework-api'
|
||||
include ':play-services-iid-api'
|
||||
include ':play-services-location-api'
|
||||
include ':play-services-wearable-api'
|
||||
|
|
Loading…
Reference in a new issue