Skip to content

Commit 3b7fcbc

Browse files
committed
Added privacy policy since google warned about using Advertising ID
1 parent 62790a8 commit 3b7fcbc

File tree

10 files changed

+19
-9
lines changed

10 files changed

+19
-9
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88

99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.0.1'
11+
classpath 'com.android.tools.build:gradle:3.1.3'
1212
classpath 'com.google.gms:google-services:3.1.2'
1313
classpath 'io.fabric.tools:gradle:1.25.1'
1414

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Mar 22 19:04:05 IST 2018
1+
#Wed Sep 19 00:30:00 IST 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

mobile/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ android {
99
minSdkVersion 19
1010
targetSdkVersion 27
1111
multiDexEnabled true
12-
13-
versionCode 17
14-
versionName "2.5"
12+
versionCode 18
13+
versionName "2.6"
1514
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1615
}
1716
buildTypes {

mobile/src/main/java/mnf/android/wearnote/MainActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.Intent;
55
import android.graphics.Color;
66
import android.graphics.Typeface;
7+
import android.net.Uri;
78
import android.os.Bundle;
89
import android.support.annotation.NonNull;
910
import android.support.annotation.Nullable;
@@ -512,6 +513,10 @@ else if(id == R.id.pro){
512513
// onProductPurchased("",null);
513514
bp.purchase(this, Config.productIdAds);
514515
}
516+
else if(id == R.id.privacy){
517+
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://muneefm.github.io/wear-note_privacy_policy/"));
518+
startActivity(browserIntent);
519+
}
515520

516521
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
517522
drawer.closeDrawer(GravityCompat.START);
465 Bytes
Loading
324 Bytes
Loading
529 Bytes
Loading
878 Bytes
Loading

mobile/src/main/res/menu/activity_main_drawer.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
android:icon="@drawable/ic_nav_settings"
1717

1818
android:title="Settings" />
19-
19+
<item
20+
android:id="@+id/privacy"
21+
android:icon="@drawable/ic_privacy"
22+
android:title="Privacy Policies" />
2023
<!-- <item
2124
android:id="@+id/nav_slideshow"
2225
android:icon="@drawable/ic_menu_slideshow"
@@ -44,4 +47,7 @@
4447
</menu>
4548
</item>
4649

50+
51+
52+
4753
</menu>

wear/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "mnf.android.wearnote"
99
minSdkVersion 23
1010
targetSdkVersion 27
11-
versionCode 16
12-
versionName "2.4"
11+
versionCode 19
12+
versionName "2.7"
1313
}
1414
buildTypes {
1515
release {

0 commit comments

Comments
 (0)