Skip to content

Commit

Permalink
Removed com.google.android.gms:play-services-appindexing:8.4.0 depend…
Browse files Browse the repository at this point in the history
…encies
  • Loading branch information
Aronne Brivio committed Jan 9, 2017
1 parent 5e92eb6 commit 9177523
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 60 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "0.5"
versionName "0.5free"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -27,5 +27,4 @@ dependencies {
compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
compile 'com.android.support:cardview-v7:25.1.0'
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
}
9 changes: 1 addition & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@
<data android:scheme="http" android:host="www.langolonerd.it" />
<data android:scheme="http" android:host="langolonerd.it" />
</intent-filter>
</activity><!-- ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</activity>
</application>

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="25" />

</manifest>
48 changes: 0 additions & 48 deletions app/src/main/java/it/langolonerd/app/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,9 @@
import android.widget.ProgressBar;
import android.widget.TextView;

import com.google.android.gms.appindexing.Action;
import com.google.android.gms.appindexing.AppIndex;
import com.google.android.gms.appindexing.Thing;
import com.google.android.gms.common.api.GoogleApiClient;

public class MainActivity extends Activity {
private WebView webView;
private CardView cardView;
/**
* ATTENTION: This was auto-generated to implement the App Indexing API.
* See https://g.co/AppIndexing/AndroidStudio for more information.
*/
private GoogleApiClient client;

@Override
public void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -81,9 +71,6 @@ public void onPageFinished(WebView view, String url) {
});

onNewIntent(getIntent());
// ATTENTION: This was auto-generated to implement the App Indexing API.
// See https://g.co/AppIndexing/AndroidStudio for more information.
client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();
}

private void visible() {
Expand Down Expand Up @@ -123,39 +110,4 @@ protected void onNewIntent(Intent intent) {
} else
webView.loadUrl("http://www.langolonerd.it");
}

/**
* ATTENTION: This was auto-generated to implement the App Indexing API.
* See https://g.co/AppIndexing/AndroidStudio for more information.
*/
public Action getIndexApiAction() {
Thing object = new Thing.Builder()
.setName("L'angolo nerd")
.setUrl(Uri.parse("http://www.langolonerd.it"))
.build();
return new Action.Builder(Action.TYPE_VIEW)
.setObject(object)
.setActionStatus(Action.STATUS_TYPE_COMPLETED)
.build();
}

@Override
public void onStart() {
super.onStart();

// ATTENTION: This was auto-generated to implement the App Indexing API.
// See https://g.co/AppIndexing/AndroidStudio for more information.
client.connect();
AppIndex.AppIndexApi.start(client, getIndexApiAction());
}

@Override
public void onStop() {
super.onStop();

// ATTENTION: This was auto-generated to implement the App Indexing API.
// See https://g.co/AppIndexing/AndroidStudio for more information.
AppIndex.AppIndexApi.end(client, getIndexApiAction());
client.disconnect();
}
}
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
<string name="app_name">L\'angolo nerd</string>
<string name="launcher_name">@string/app_name</string>
<string name="activity_name">@string/launcher_name</string>
<string name="version">version 0.5</string>
<string name="app_version">0.5</string>
<string name="version">version 0.5free</string>
<string name="app_version">0.5free</string>
</resources>

0 comments on commit 9177523

Please sign in to comment.