Skip to content

Commit

Permalink
Few small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
costinm committed Oct 1, 2015
1 parent 8db95c1 commit bb6a993
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
5 changes: 3 additions & 2 deletions android/AndroidManifest.xml
Expand Up @@ -29,14 +29,15 @@
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />

<!--
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />

-->
<application
android:icon="@drawable/app_icon"
android:label="@string/app_name"
Expand Down Expand Up @@ -71,7 +72,7 @@
</activity>

<!-- Handles incoming messages, using GCM 3.0 API -->
<service android:name=".GCMIntentService" >
<service android:name=".GCMIntentService" android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
Expand Down
12 changes: 7 additions & 5 deletions android/build.gradle
Expand Up @@ -15,10 +15,9 @@ dependencies {
//compile project(path: ':backend', configuration: 'android-endpoints')
compile 'com.android.support:support-v4:22.2.0'
compile 'com.google.android.gms:play-services:7.5.0'
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.9.5"
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.9.5'
//testCompile ""

}

//http://tools.android.com/tech-docs/new-build-system/user-guide
Expand Down Expand Up @@ -50,7 +49,7 @@ android {

}

// Move the build types to build-types/<type>
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
Expand All @@ -69,7 +68,10 @@ android {
// instance.
// You can define a different keystore, and configure it against
// a different base URL.
storeFile file("dev.keystore")
storeFile file('debug.keystore')
}
}
dexOptions {
incremental true
}
}
12 changes: 12 additions & 0 deletions android/src/com/google/android/apps/chrometophone/Prefs.java
Expand Up @@ -68,8 +68,20 @@ public final class Prefs {

public static final String IID = "iid";

/** Certificate used to signed the release. Configured on the chrometophone
* dev console.
*/
public static final String PROD_CERT = "24bb24c05e47e0aefa68a58a766179d9b613a600";

/**
* Certificate matching the debug.keystore checked into the build.
* This can't be published to market, but will work for development.
*
* It is configured in the dev console for the corresponding DEV_SCOPE
* and DEV_URL.
*/
public static final String DEV_CERT = "FE51F95820CDE90B5334588B1F7666A1627180CE";

private final SharedPreferences sharedPreferences;
private final Context context;

Expand Down

0 comments on commit bb6a993

Please sign in to comment.