Skip to content

Instantly share code, notes, and snippets.

@cbush
cbush / KotlinInternalModuleHacking.md
Last active September 21, 2020 03:56
Working around "package is declared in module, which does not export it" issue with Kotlin gradle build

Working around "package X is declared in module Y, which does not export it" with Kotlin gradle build

When hacking with internal classes using Kotlin with JDK 12, I ran into this error:

error: package jdk.javadoc.internal.tool is not visible
import jdk.javadoc.internal.tool.*;
                           ^
  (package jdk.javadoc.internal.tool is declared in module jdk.javadoc, which does not export it)
1 error
@cbush
cbush / App.js
Created March 14, 2019 23:01
Stitch + react-native-google-signin - Logging in with Google
import React from 'react'
import {
Button, StyleSheet, Text, View,
} from 'react-native'
import {Stitch, GoogleCredential} from 'mongodb-stitch-react-native-sdk'
import {GoogleSignin, GoogleSigninButton} from 'react-native-google-signin'
// Based on the App.js example at https://docs.mongodb.com/stitch-sdks/js-react-native/4/
export default class App extends React.Component {
constructor(props) {