Skip to content

Commit

Permalink
Merge pull request #19 from inaturalist/errors
Browse files Browse the repository at this point in the history
Merge bug fixes into master
  • Loading branch information
albullington authored Nov 30, 2018
2 parents ebc3e15 + f37397b commit b8ba38b
Show file tree
Hide file tree
Showing 91 changed files with 1,205 additions and 800 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ build/
local.properties
*.iml
android/app/src/main/res/values/config.xml
android/app/release/

# node.js
#
Expand Down
31 changes: 31 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ import com.android.build.OutputFile
* ]
*/

def getPassword(String currentUser, String keyChain) {
def stdout = new ByteArrayOutputStream()
def stderr = new ByteArrayOutputStream()
exec {
commandLine 'security', '-q', 'find-generic-password', '-a', currentUser, '-s', keyChain, '-w'
standardOutput = stdout
errorOutput = stderr
ignoreExitValue true
}
//noinspection GroovyAssignabilityCheck
stdout.toString().trim()
}

project.ext.react = [
entryFile: "index.js"
]
Expand All @@ -93,6 +106,8 @@ def enableSeparateBuildPerCPUArchitecture = false
*/
def enableProguardInReleaseBuilds = false

def pass = getPassword("iNaturalist.org","inaturalist-android")

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion '28.0.3'
Expand All @@ -108,6 +123,14 @@ android {
}
vectorDrawables.useSupportLibrary = true
}
signingConfigs {
release {
storeFile file(SEEK_RELEASE_STORE_FILE)
storePassword pass
keyAlias SEEK_RELEASE_KEY_ALIAS
keyPassword pass
}
}
splits {
abi {
reset()
Expand All @@ -120,6 +143,7 @@ android {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
Expand All @@ -138,6 +162,13 @@ android {
}

dependencies {
implementation project(':react-native-vector-icons')
implementation project(':realm')
implementation project(':react-native-svg')
implementation project(':react-native-maps')
implementation project(':react-native-image-resizer')
implementation project(':react-native-geocoder')
implementation project(':react-native-camera')
implementation project(':realm')
implementation project(':react-native-svg')
implementation project(':react-native-image-resizer')
Expand Down
Binary file added android/app/src/main/assets/fonts/AntDesign.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Entypo.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/EvilIcons.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Feather.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Foundation.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Ionicons.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Octicons.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Zocial.ttf
Binary file not shown.
Binary file not shown.
14 changes: 11 additions & 3 deletions android/app/src/main/java/com/seek/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

import io.realm.react.RealmReactPackage;
import com.facebook.react.ReactApplication;
import com.oblador.vectoricons.VectorIconsPackage;
import io.realm.react.RealmReactPackage;
import com.horcrux.svg.SvgPackage;
import com.airbnb.android.react.maps.MapsPackage;
import fr.bamlab.rnimageresizer.ImageResizerPackage;
import com.devfd.RNGeocoder.RNGeocoderPackage;
import org.reactnative.camera.RNCameraPackage;
import com.horcrux.svg.SvgPackage;
import fr.bamlab.rnimageresizer.ImageResizerPackage;
import com.devfd.RNGeocoder.RNGeocoderPackage;
Expand All @@ -29,12 +36,13 @@ public boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new VectorIconsPackage(),
new RealmReactPackage(),
new SvgPackage(),
new ImageResizerPackage(),
new MapsPackage(),
new RNCameraPackage(),
new RNGeocoderPackage()
new ImageResizerPackage(),
new RNGeocoderPackage(),
new RNCameraPackage()
);
}

Expand Down
11 changes: 11 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ task wrapper(type: Wrapper) {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}

subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
}
}
}
}
5 changes: 4 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true

SEEK_RELEASE_STORE_FILE=inaturalist-android.keystore
SEEK_RELEASE_KEY_ALIAS=inaturalist-android
14 changes: 14 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
rootProject.name = 'Seek'
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':realm'
project(':realm').projectDir = new File(rootProject.projectDir, '../node_modules/realm/android')
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
include ':react-native-image-resizer'
project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android')
include ':react-native-geocoder'
project(':react-native-geocoder').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-geocoder/android')
include ':react-native-camera'
project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android')
include ':realm'
project(':realm').projectDir = new File(rootProject.projectDir, '../node_modules/realm/android')
include ':react-native-svg'
Expand Down
Binary file added assets/fonts/Whitney-Black-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-BlackItalic-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-Bold-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-BoldItalic-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-Book-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-BookItalic-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-Light-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-LightItalic-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-MediumItalic-Pro.otf
Binary file not shown.
Binary file added assets/fonts/Whitney-SemiboldItalic-Pro.otf
Binary file not shown.
Binary file added assets/fonts/riffic-bold.ttf
Binary file not shown.
Binary file removed assets/marker.png
Binary file not shown.
5 changes: 4 additions & 1 deletion components/AboutTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from "react";
import { View, Text, TouchableOpacity } from "react-native";

import styles from "../styles/about";
import { fonts, fontSize } from "../styles/global";

type Props = {
navigation: any
Expand All @@ -13,7 +14,9 @@ const AboutTitle = ( { navigation }: Props ) => (
<TouchableOpacity
onPress={() => navigation.navigate( "About" )}
>
<Text>About</Text>
<Text style={{ fontFamily: fonts.default, fontSize: fontSize.text }}>
About
</Text>
</TouchableOpacity>
</View>
);
Expand Down
2 changes: 2 additions & 0 deletions components/BadgesScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Realm from "realm";
import badgeImages from "../assets/badges";
import realmConfig from "../models/index";
import styles from "../styles/badges";
import { recalculateBadges } from "../utility/helpers";

type Props = {
navigation: any
Expand All @@ -29,6 +30,7 @@ class BadgesScreen extends Component {
}

componentDidMount() {
recalculateBadges();
this.fetchBadges();
}

Expand Down
3 changes: 2 additions & 1 deletion components/BadgesTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { View, Text } from "react-native";
import Realm from "realm";

import realmConfig from "../models/index";
import { fontSize, fonts } from "../styles/global";

type Props = {
navigation: any
Expand Down Expand Up @@ -49,7 +50,7 @@ class BadgesTitle extends Component {
const { title } = this.state;
return (
<View>
<Text>{title}</Text>
<Text style={{ fontFamily: fonts.default, fontSize: fontSize.header }}>{title}</Text>
</View>
);
}
Expand Down
Loading

0 comments on commit b8ba38b

Please sign in to comment.