1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-15 10:50:09 +02:00

Merge branch 'build-fixes' into 'master'

build fixes

Closes #613

See merge request fdroid/fdroidserver!715
This commit is contained in:
Hans-Christoph Steiner 2020-02-14 13:22:07 +00:00
commit ddafcb9f8a
34 changed files with 1244 additions and 16 deletions

View File

@ -142,6 +142,7 @@ lint_format_safety_bandit_checks:
- $pip install Babel 'bandit<1.6.0' pycodestyle pyflakes 'pylint<2.0' safety
- export EXITVALUE=0
- ./hooks/pre-commit || export EXITVALUE=1
- ./tests/test-gradlew-fdroid || export EXITVALUE=1
- bandit
-ii
-s B110,B322,B404,B408,B410,B603,B607

View File

@ -33,6 +33,13 @@ cat <<EOF > $GRADLE_HOME/gradle.properties
# builds are not reused, so the daemon is a waste of time
org.gradle.daemon=false
# set network timeouts to 10 minutes
# https://github.com/gradle/gradle/pull/3371/files
systemProp.http.connectionTimeout=600000
systemProp.http.socketTimeout=600000
systemProp.org.gradle.internal.http.connectionTimeout=600000
systemProp.org.gradle.internal.http.socketTimeout=600000
# fake info to block HTTP repos
systemProp.http.nonProxyHosts=
systemProp.http.proxyHost=127.127.127.127

View File

@ -468,7 +468,7 @@ def build_local(app, build, vcs, build_dir, output_dir, log_dir, srclib_dir, ext
if f in files:
os.remove(os.path.join(root, f))
if any(f in files for f in ['build.gradle', 'settings.gradle']):
if any(f in files for f in ['build.gradle', 'build.gradle.kts', 'settings.gradle', 'settings.gradle.kts']):
# Even when running clean, gradle stores task/artifact caches in
# .gradle/ as binary files. To avoid overcomplicating the scanner,
# manually delete them, just like `gradle clean` should have removed

View File

@ -334,7 +334,7 @@ def try_init_submodules(app, last_build, vcs):
def dirs_with_manifest(startdir):
for root, dirs, files in os.walk(startdir):
if any(m in files for m in [
'AndroidManifest.xml', 'pom.xml', 'build.gradle']):
'AndroidManifest.xml', 'pom.xml', 'build.gradle', 'build.gradle.kts']):
yield root

View File

@ -81,6 +81,7 @@ FDROID_PACKAGE_NAME_REGEX = re.compile(r'''^[a-f0-9]+$''', re.IGNORECASE)
STRICT_APPLICATION_ID_REGEX = re.compile(r'''(?:^[a-zA-Z]+(?:\d*[a-zA-Z_]*)*)(?:\.[a-zA-Z]+(?:\d*[a-zA-Z_]*)*)+$''')
VALID_APPLICATION_ID_REGEX = re.compile(r'''(?:^[a-z_]+(?:\d*[a-zA-Z_]*)*)(?:\.[a-z_]+(?:\d*[a-zA-Z_]*)*)*$''',
re.IGNORECASE)
ANDROID_PLUGIN_REGEX = re.compile(r'''\s*(:?apply plugin:|id)\(?\s*['"](android|com\.android\.application)['"]\s*\)?''')
MAX_VERSION_CODE = 0x7fffffff # Java's Integer.MAX_VALUE (2147483647)
@ -1300,7 +1301,8 @@ def manifest_paths(app_dir, flavours):
[os.path.join(app_dir, 'AndroidManifest.xml'),
os.path.join(app_dir, 'src', 'main', 'AndroidManifest.xml'),
os.path.join(app_dir, 'src', 'AndroidManifest.xml'),
os.path.join(app_dir, 'build.gradle')]
os.path.join(app_dir, 'build.gradle'),
os.path.join(app_dir, 'build.gradle.kts')]
for flavour in flavours:
if flavour == 'yes':
@ -1419,8 +1421,9 @@ def parse_androidmanifests(paths, app):
if app.builds and 'gradle' in app.builds[-1] and app.builds[-1].gradle:
flavour = app.builds[-1].gradle[-1]
if has_extension(path, 'gradle'):
if path.endswith('.gradle') or path.endswith('.gradle.kts'):
with open(path, 'r') as f:
android_plugin_file = False
inside_flavour_group = 0
inside_required_flavour = 0
for line in f:
@ -1496,6 +1499,17 @@ def parse_androidmanifests(paths, app):
matches = vcsearch_g(line)
if matches:
vercode = matches.group(1)
if not android_plugin_file and ANDROID_PLUGIN_REGEX.match(line):
android_plugin_file = True
if android_plugin_file:
if package:
max_package = package
if version:
max_version = version
if vercode:
max_vercode = vercode
if max_package and max_version and max_vercode:
break
else:
try:
xml = parse_xml(path)
@ -1775,9 +1789,15 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
if build.target:
n = build.target.split('-')[1]
build_gradle = os.path.join(root_dir, "build.gradle")
build_gradle_kts = build_gradle + ".kts"
if os.path.exists(build_gradle):
gradlefile = build_gradle
elif os.path.exist(build_gradle_kts):
gradlefile = build_gradle_kts
regsub_file(r'compileSdkVersion[ =]+[0-9]+',
r'compileSdkVersion %s' % n,
os.path.join(root_dir, 'build.gradle'))
gradlefile)
# Remove forced debuggable flags
remove_debuggable_flags(root_dir)
@ -2360,7 +2380,7 @@ def FDroidPopen(commands, cwd=None, envs=None, output=True, stderr_to_stdout=Tru
gradle_comment = re.compile(r'[ ]*//')
gradle_signing_configs = re.compile(r'^[\t ]*signingConfigs[ \t]*{[ \t]*$')
gradle_line_matches = [
re.compile(r'^[\t ]*signingConfig [^ ]*$'),
re.compile(r'^[\t ]*signingConfig\s*[= ]\s*[^ ]*$'),
re.compile(r'.*android\.signingConfigs\.[^{]*$'),
re.compile(r'.*release\.signingConfig *= *'),
]
@ -2368,9 +2388,13 @@ gradle_line_matches = [
def remove_signing_keys(build_dir):
for root, dirs, files in os.walk(build_dir):
gradlefile = None
if 'build.gradle' in files:
path = os.path.join(root, 'build.gradle')
gradlefile = "build.gradle"
elif 'build.gradle.kts' in files:
gradlefile = "build.gradle.kts"
if gradlefile:
path = os.path.join(root, gradlefile)
with open(path, "r") as o:
lines = o.readlines()
@ -2408,7 +2432,7 @@ def remove_signing_keys(build_dir):
o.write(line)
if changed:
logging.info("Cleaned build.gradle of keysigning configs at %s" % path)
logging.info("Cleaned %s of keysigning configs at %s" % (gradlefile, path))
for propfile in [
'project.properties',

View File

@ -41,7 +41,6 @@ from .exception import FDroidException
SETTINGS_GRADLE = re.compile(r'settings\.gradle(?:\.kts)?')
GRADLE_SUBPROJECT = re.compile(r'''['"]:([^'"]+)['"]''')
ANDROID_PLUGIN = re.compile(r'''\s*(:?apply plugin:|id)\(?\s*['"](android|com\.android\.application)['"]\s*\)?''')
# Get the repo type and address from the given web page. The page is scanned
@ -197,7 +196,7 @@ def get_gradle_subdir(build_dir, paths):
line = fp.readline()
if not line:
break
if ANDROID_PLUGIN.match(line):
if common.ANDROID_PLUGIN_REGEX.match(line):
return os.path.relpath(os.path.dirname(f), build_dir)
if first_gradle_dir and first_gradle_dir != '.':
return first_gradle_dir
@ -244,7 +243,7 @@ def main():
app.RepoType = 'git'
app.UpdateCheckMode = "Tags"
if os.path.exists('build.gradle'):
if os.path.exists('build.gradle') or os.path.exists('build.gradle.kts'):
build.gradle = ['yes']
import git
@ -300,7 +299,8 @@ def main():
app.Categories = options.categories.split(',')
if os.path.exists(os.path.join(subdir, 'jni')):
build.buildjni = ['yes']
if os.path.exists(os.path.join(subdir, 'build.gradle')):
if os.path.exists(os.path.join(subdir, 'build.gradle')) \
or os.path.exists(os.path.join(subdir, 'build.gradle')):
build.gradle = ['yes']
package_json = os.path.join(build_dir, 'package.json') # react-native

View File

@ -825,9 +825,10 @@ def copy_triple_t_store_metadata(apps):
setting_gradle_pattern = re.compile(r"""\s*include\s+["']:([^"']+)["'](?:,[\n\s]*["']:([^"']+)["'])*""")
for packageName, app in apps.items():
settings_gradle = os.path.join('build', packageName, 'settings.gradle')
gradle_subdirs = set()
if os.path.exists(settings_gradle):
sg_list = glob.glob(os.path.join('build', packageName, 'settings.gradle*'))
if sg_list:
settings_gradle = sg_list[0]
with open(settings_gradle) as fp:
data = fp.read()
for matches in setting_gradle_pattern.findall(data):

View File

@ -174,7 +174,7 @@ if [[ -n $wrapper_ver ]]; then
fi
# Earliest takes priority
for f in {.,..}/build.gradle; do
for f in {.,..}/build.gradle{,.kts}; do
[[ -f $f ]] || continue
while IFS='' read -r line || [ -n "$line" ]; do
if [[ -z "$plugin_pver" && $line == *'com.android.tools.build:gradle:'* ]]; then

View File

@ -840,6 +840,27 @@ class CommonTest(unittest.TestCase):
self.assertEqual(('0.6.9', '23', 'cn.wildfirechat.chat'),
fdroidserver.common.parse_androidmanifests(paths, app))
app = fdroidserver.metadata.App()
app.Repo = 'https://github.com/Integreight/1Sheeld-Android-App'
paths = [
os.path.join('source-files', 'com.integreight.onesheeld', 'pagerIndicator', 'src', 'main', 'AndroidManifest.xml'),
os.path.join('source-files', 'com.integreight.onesheeld', 'pagerIndicator', 'build.gradle'),
os.path.join('source-files', 'com.integreight.onesheeld', 'oneSheeld', 'src', 'main', 'AndroidManifest.xml'),
os.path.join('source-files', 'com.integreight.onesheeld', 'oneSheeld', 'build.gradle'),
os.path.join('source-files', 'com.integreight.onesheeld', 'localeapi', 'src', 'main', 'AndroidManifest.xml'),
os.path.join('source-files', 'com.integreight.onesheeld', 'localeapi', 'build.gradle'),
os.path.join('source-files', 'com.integreight.onesheeld', 'build.gradle'),
os.path.join('source-files', 'com.integreight.onesheeld', 'settings.gradle'),
os.path.join('source-files', 'com.integreight.onesheeld', 'quickReturnHeader', 'src', 'main', 'AndroidManifest.xml'),
os.path.join('source-files', 'com.integreight.onesheeld', 'quickReturnHeader', 'build.gradle'),
os.path.join('source-files', 'com.integreight.onesheeld', 'pullToRefreshlibrary', 'src', 'main', 'AndroidManifest.xml'),
os.path.join('source-files', 'com.integreight.onesheeld', 'pullToRefreshlibrary', 'build.gradle'),
]
for path in paths:
self.assertTrue(os.path.isfile(path))
self.assertEqual(('1.9.0', '170521', 'com.integreight.onesheeld'),
fdroidserver.common.parse_androidmanifests(paths, app))
def test_parse_androidmanifests_ignore(self):
app = fdroidserver.metadata.App()
app.id = 'org.fdroid.fdroid'
@ -971,6 +992,7 @@ class CommonTest(unittest.TestCase):
'source-files/info.guardianproject.ripple/build.gradle',
'source-files/open-keychain/open-keychain/build.gradle',
'source-files/open-keychain/open-keychain/OpenKeychain/build.gradle',
'source-files/org.tasks/app/build.gradle.kts',
'source-files/osmandapp/osmand/build.gradle',
'source-files/ut.ewh.audiometrytest/app/build.gradle',
]

View File

@ -29,10 +29,12 @@ class ScannerTest(unittest.TestCase):
source_files = os.path.join(self.basedir, 'source-files')
projects = {
'cn.wildfirechat.chat': 4,
'com.integreight.onesheeld': 11,
'Zillode': 1,
'firebase-suspect': 1,
'org.mozilla.rocket': 3,
'realm': 1,
'se.manyver': 2,
}
for d in glob.glob(os.path.join(source_files, '*')):
build = fdroidserver.metadata.Build()

View File

@ -0,0 +1,16 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}

View File

@ -0,0 +1,6 @@
#Wed Mar 15 14:07:53 EET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

View File

@ -0,0 +1,22 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
minSdkVersion 9
targetSdkVersion 17
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:25.1.0'
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.twofortyfouram.locale.api" >
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
</manifest>

View File

@ -0,0 +1,129 @@
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.integreight.onesheeld"
minSdkVersion 9
targetSdkVersion 25
versionCode 170521
versionName "1.9.0"
archivesBaseName = "1Sheeld.v$versionName.$versionCode"
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
}
buildTypes.all {
ext.enableCrashlytics = isCrashlyticsPropertiesAvailable()
}
buildTypes {
debug {
versionNameSuffix getWorkingBranchSuffix()
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
lintOptions {
abortOnError false
}
useLibrary 'org.apache.http.legacy'
}
dependencies {
compile project(':localeapi')
compile project(':pullToRefreshlibrary')
compile project(':quickReturnHeader')
compile project(':pagerIndicator')
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:25.3.1'
compile 'com.facebook.android:facebook-android-sdk:4.5.0'
compile 'com.google.android.gms:play-services-analytics:10.0.1'
compile 'com.google.android.gms:play-services-location:10.0.1'
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.google.android.gms:play-services-vision:10.0.1'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.snappydb:snappydb-lib:0.5.0'
compile 'com.esotericsoftware.kryo:kryo:2.24.0'
compile 'com.github.hotchemi:android-rate:0.5.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
compile('com.google.android.gms:play-services-identity:10.0.1') {
transitive = true;
}
compile('com.google.api-client:google-api-client-android:1.22.0') {
exclude group: 'org.apache.httpcomponents'
}
compile('com.google.apis:google-api-services-gmail:v1-rev48-1.22.0') {
exclude group: 'org.apache.httpcomponents'
}
compile 'org.twitter4j:twitter4j-core:4.0.4'
compile 'org.twitter4j:twitter4j-async:4.0.4'
compile 'org.twitter4j:twitter4j-stream:4.0.4'
compile 'cz.msebera.android:httpclient:4.4.1.1'
compile 'net.sf.supercsv:super-csv:2.4.0'
compile 'com.github.amlcurran.showcaseview:library:5.4.3'
compile 'com.github.emanzanoaxa:RippleEffect:52ea2a0ab6'
compile 'com.drewnoakes:metadata-extractor:2.8.1'
compile 'com.integreight.onesheeld:sdk:2.2.0'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
}
def isCrashlyticsPropertiesAvailable() {
return new File("./oneSheeld/fabric.properties").exists()
}
def getWorkingBranchSuffix() {
def workingBranchSuffix = ""
try {
def workingBranch = "git --git-dir=${rootDir}/.git --work-tree=${rootDir} rev-parse --abbrev-ref HEAD".execute().text.trim()
workingBranchSuffix = (workingBranch != "") ? " - branch:" + workingBranch : ""
}
catch (all) {
}
return workingBranchSuffix
}
def isGoogleServicesFileAvailable() {
return new File("./oneSheeld/google-services.json").exists()
}
if (isGoogleServicesFileAvailable()) {
apply plugin: 'com.google.gms.google-services'
}

View File

@ -0,0 +1,280 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.integreight.onesheeld">
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission
android:name="android.permission.FLASHLIGHT"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="normal" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<permission
android:name="com.integreight.onesheeld.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.integreight.onesheeld.permission.C2D_MESSAGE" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<uses-feature
android:name="android.hardware.bluetooth"
android:required="true" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.flash"
android:required="false" />
<uses-feature
android:name="android.hardware.location"
android:required="false" />
<uses-feature
android:name="android.hardware.location.network"
android:required="false" />
<uses-feature
android:name="android.hardware.location.gps"
android:required="false" />
<uses-feature
android:name="android.hardware.microphone"
android:required="false" />
<uses-feature
android:name="android.hardware.nfc"
android:required="false" />
<application
android:name="com.integreight.onesheeld.OneSheeldApplication"
android:allowBackup="true"
android:allowClearUserData="true"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:resizeableActivity="false"
android:theme="@style/AppTheme">
<activity
android:name="com.integreight.onesheeld.MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|locale|fontScale|layoutDirection|screenLayout|screenSize|smallestScreenSize|uiMode"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/AppTheme"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:label="@string/app_name" />
<meta-data android:name="com.facebook.sdk.ApplicationName"
android:value="@string/app_name" />
<provider android:authorities="com.facebook.app.FacebookContentProvider1423548367865538"
android:name="com.facebook.FacebookContentProvider"
android:exported="true"/>
<receiver android:name="com.integreight.onesheeld.utils.FacebookBroadcastReceiver">
<intent-filter>
<action android:name="com.facebook.platform.AppCallResultBroadcast" />
</intent-filter>
</receiver>
<service
android:name="com.integreight.onesheeld.services.OneSheeldService"
android:exported="false"
android:singleUser="false" />
<activity
android:name="com.integreight.onesheeld.plugin.action.ActionActivity"
android:configChanges="orientation"
android:exported="true"
android:icon="@drawable/ic_launcher"
android:label="@string/plugin_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Light"
android:uiOptions="splitActionBarWhenNarrow"
android:windowSoftInputMode="adjustResize"
tools:ignore="ExportedActivity">
<!-- this Intent filter allows the plug-in to be discovered by Locale -->
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
</intent-filter>
</activity>
<activity
android:name="com.integreight.onesheeld.plugin.condition.ConditionActivity"
android:configChanges="orientation"
android:exported="true"
android:icon="@drawable/ic_launcher"
android:label="@string/plugin_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Light"
android:uiOptions="splitActionBarWhenNarrow"
android:windowSoftInputMode="adjustResize"
tools:ignore="ExportedActivity">
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_CONDITION" />
</intent-filter>
</activity>
<activity
android:name=".shields.controller.utils.NfcUtils"
android:allowTaskReparenting="true"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:taskAffinity=":nfc"
android:theme="@style/Theme.Transparent"/>
<activity-alias
android:name="NFCUtils-alias"
android:enabled="true"
android:exported="true"
android:targetActivity=".shields.controller.utils.NfcUtils">
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="tel" />
<data android:scheme="mailto" />
<data android:scheme="ftp" />
<data android:scheme="ftps" />
<data android:scheme="sftp" />
<data android:scheme="smb" />
<data android:scheme="nfs" />
<data android:scheme="dav" />
<data android:scheme="news" />
<data android:scheme="telnet" />
<data android:scheme="imap" />
<data android:scheme="rtsp" />
<data android:scheme="urn" />
<data android:scheme="pop" />
<data android:scheme="sip" />
<data android:scheme="sips" />
<data android:scheme="tftp" />
<data android:scheme="btspp" />
<data android:scheme="btl2cap" />
<data android:scheme="btgoep" />
<data android:scheme="tcpobex" />
<data android:scheme="irdaobex" />
<data android:scheme="file" />
<data android:scheme="urn:epc:id" />
<data android:scheme="urn:epc:tag" />
<data android:scheme="urn:epc:pat" />
<data android:scheme="urn:epc:raw" />
<data android:scheme="urn:epc" />
<data android:scheme="urn:nfc" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/nfc_supported_technologies" />
</activity-alias>
<receiver
android:name="com.integreight.onesheeld.plugin.action.FireReceiver"
android:exported="true"
tools:ignore="ExportedReceiver">
<!-- this Intent filter allows the plug-in to discovered by Locale -->
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" />
</intent-filter>
</receiver>
<receiver
android:name="com.integreight.onesheeld.plugin.condition.QueryReceiver"
android:exported="true"
tools:ignore="ExportedReceiver">
<!-- this Intent filter allows the plug-in to discovered by Locale and be queried -->
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.QUERY_CONDITION" />
</intent-filter>
</receiver>
<service
android:name="com.integreight.onesheeld.shields.controller.utils.CameraHeadService"
android:label="My CameraHeadService"
android:process=":camera"
android:singleUser="true"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="Tutorial"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar"/>
<service android:name="com.integreight.onesheeld.shields.controller.utils.SpeechRecognitionService" />
<service
android:name="com.integreight.onesheeld.push.PushMessagesReceiver">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
</application>
</manifest>

View File

@ -0,0 +1,22 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
minSdkVersion 9
targetSdkVersion 9
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:25.1.0'
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.viewpagerindicator"
android:versionCode="65"
android:versionName="2.4.1">
<uses-sdk android:minSdkVersion="4" />
</manifest>

View File

@ -0,0 +1,20 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
minSdkVersion 9
targetSdkVersion 9
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.handmark.pulltorefresh.library"
android:versionCode="2110"
android:versionName="2.1.1" >
<uses-sdk android:minSdkVersion="4" />
<application />
</manifest>

View File

@ -0,0 +1,22 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
minSdkVersion 9
targetSdkVersion 17
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:25.1.0'
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.manuelpeinado.quickreturnheader"
android:versionCode="1"
android:versionName="0.1.1" >
<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="17" />
</manifest>

View File

@ -0,0 +1,5 @@
include ':pagerIndicator'
include ':pullToRefreshlibrary'
include ':quickReturnHeader'
include ':localeapi'
include ':oneSheeld'

View File

@ -0,0 +1,6 @@
#Mon Sep 01 10:23:06 EEST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

View File

@ -0,0 +1,272 @@
apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
* and bundleReleaseJsAndAssets).
* These basically call `react-native bundle` with the correct arguments during the Android build
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
* bundle directly from the development server. Below you can see all the possible configurations
* and their defaults. If you decide to add a configuration block, make sure to add it before the
* `apply from: "../../node_modules/react-native/react.gradle"` line.
*
* project.ext.react = [
* // the name of the generated asset file containing your JS bundle
* bundleAssetName: "index.android.bundle",
*
* // the entry file for bundle generation
* entryFile: "index.android.js",
*
* // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format
* bundleCommand: "ram-bundle",
*
* // whether to bundle JS and assets in debug mode
* bundleInDebug: false,
*
* // whether to bundle JS and assets in release mode
* bundleInRelease: true,
*
* // whether to bundle JS and assets in another build variant (if configured).
* // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
* // The configuration property can be in the following formats
* // 'bundleIn${productFlavor}${buildType}'
* // 'bundleIn${buildType}'
* // bundleInFreeDebug: true,
* // bundleInPaidRelease: true,
* // bundleInBeta: true,
*
* // whether to disable dev mode in custom build variants (by default only disabled in release)
* // for example: to disable dev mode in the staging build type (if configured)
* devDisabledInStaging: true,
* // The configuration property can be in the following formats
* // 'devDisabledIn${productFlavor}${buildType}'
* // 'devDisabledIn${buildType}'
*
* // the root of your project, i.e. where "package.json" lives
* root: "../../",
*
* // where to put the JS bundle asset in debug mode
* jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
*
* // where to put the JS bundle asset in release mode
* jsBundleDirRelease: "$buildDir/intermediates/assets/release",
*
* // where to put drawable resources / React Native assets, e.g. the ones you use via
* // require('./image.png')), in debug mode
* resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
*
* // where to put drawable resources / React Native assets, e.g. the ones you use via
* // require('./image.png')), in release mode
* resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
*
* // by default the gradle tasks are skipped if none of the JS files or assets change; this means
* // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
* // date; if you have any other folders that you want to ignore for performance reasons (gradle
* // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
* // for example, you might want to remove it from here.
* inputExcludes: ["android/**", "ios/**"],
*
* // override which node gets called and with what additional arguments
* nodeExecutableAndArgs: ["node"],
*
* // supply additional arguments to the packager
* extraPackagerArgs: []
* ]
*/
project.ext.vectoricons = [
iconFontNames: [ 'MaterialIcons.ttf', 'MaterialCommunityIcons.ttf' ]
]
project.ext.react = [
entryFile: "index.android.js",
enableHermes: false, // clean and rebuild if changing
hermesCommand: "../../node_modules/hermes-engine/%OS-BIN%/hermes",
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
apply from: "../../node_modules/react-native/react.gradle"
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
* - An APK that only works on x86 devices
* The advantage is the size of the APK is reduced by about 4MB.
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
/**
* The preferred build flavor of JavaScriptCore.
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc:+'
/**
* Whether to enable the Hermes VM.
*
* This should be set on project.ext.react and mirrored here. If it is not set
* on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
* and the benefits of using Hermes will therefore be sharply reduced.
*/
def enableHermes = project.ext.react.get("enableHermes", false);
android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
flavorDimensions "store"
defaultConfig {
versionCode 78
versionName "0.1911.27-beta"
applicationId "se.manyver"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative60"
ndk {
abiFilters "armeabi-v7a", "arm64-v8a" // , "x86", "x86_64"
}
aaptOptions {
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
}
vectorDrawables.useSupportLibrary = true
}
// dexOptions {
// javaMaxHeapSize "4g"
// }
productFlavors {
indie {
dimension "store"
}
googlePlay {
dimension "store"
versionNameSuffix "-googlePlay"
targetSdkVersion rootProject.ext.targetSdkVersionForGooglePlay
}
}
signingConfigs {
// debug {
// storeFile file('debug.keystore')
// storePassword 'android'
// keyAlias 'androiddebugkey'
// keyPassword 'android'
// }
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "arm64-v8a"//, "x86", "x86_64"
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://facebook.github.io/react-native/docs/signed-apk-android.
// signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
signingConfig signingConfigs.release
}
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
def versionCodes = ["armeabi-v7a": 1, "arm64-v8a": 2] //, "x86":3, "x86_64":4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
def acraVersion = '5.3.0'
dependencies {
implementation "ch.acra:acra-core:$acraVersion"
implementation "ch.acra:acra-mail:$acraVersion"
implementation "ch.acra:acra-dialog:$acraVersion"
implementation project(':nodejs-mobile-react-native')
implementation project(':@react-native-community_async-storage')
implementation project(':react-native-bluetooth-socket-bridge')
implementation project(':react-native-bluetooth-status')
implementation project(':react-native-dialogs')
implementation project(':react-native-vector-icons')
implementation project(':react-native-os-staltz')
implementation project(':react-native-randombytes')
implementation project(':react-native-image-crop-picker')
implementation project(':react-native-navigation')
implementation project(':react-native-android-local-notification')
implementation project(':react-native-android-wifi')
implementation project(':react-native-has-internet')
implementation project(':react-native-flag-secure-android')
implementation project(':react-native-orientation-locker')
implementation project(':react-native-fs')
implementation project(':react-native-splash-screen')
implementation project(':@react-native-community_viewpager')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation("com.facebook.react:react-native:+") {
force = true
}
implementation 'com.facebook.fresco:animated-gif:1.3.0'
if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

View File

@ -0,0 +1,64 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
minSdkVersion = 21
targetSdkVersion = 26
targetSdkVersionForGooglePlay = 28
compileSdkVersion = 28
}
repositories {
google()
jcenter()
mavenLocal()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:3.4.2")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
maven {
url 'https://maven.google.com'
}
maven {
url "https://jitpack.io"
}
google()
jcenter()
}
}
subprojects { subproject ->
afterEvaluate {
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains("reactNative51")) setIgnore(true)
if (names.contains("reactNative55")) setIgnore(true)
if (names.contains("reactNative56")) setIgnore(true)
if (names.contains("reactNative57")) setIgnore(true)
if (names.contains("reactNative57_5")) setIgnore(true)
if (names.contains("reactNative57WixFork")) setIgnore(true)
if (names.contains("reactNative59")) setIgnore(true)
}
}
}
}
}

View File

@ -0,0 +1,22 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# 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
android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx4608M

View File

@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip

View File

@ -0,0 +1,40 @@
rootProject.name = 'Manyverse'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':@react-native-community_async-storage'
project(':@react-native-community_async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/async-storage/android')
include ':react-native-bluetooth-status'
project(':react-native-bluetooth-status').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-bluetooth-status/android')
include ':react-native-bluetooth-socket-bridge'
project(':react-native-bluetooth-socket-bridge').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-bluetooth-socket-bridge/android')
include ':react-native-image-crop-picker'
project(':react-native-image-crop-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-crop-picker/android')
include ':nodejs-mobile-react-native'
project(':nodejs-mobile-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/nodejs-mobile-react-native/android')
include ':react-native-dialogs'
project(':react-native-dialogs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-dialogs/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-os-staltz'
project(':react-native-os-staltz').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-os-staltz/android')
include ':react-native-randombytes'
project(':react-native-randombytes').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-randombytes/android')
include ':react-native-navigation'
project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/lib/android/app/')
include ':react-native-android-local-notification'
project(':react-native-android-local-notification').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-local-notification/android')
include ':react-native-android-wifi'
project(':react-native-android-wifi').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-wifi/android')
include ':react-native-has-internet'
project(':react-native-has-internet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-has-internet/android')
include ':react-native-flag-secure-android'
project(':react-native-flag-secure-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-flag-secure-android/android')
include ':react-native-orientation-locker', ':app'
project(':react-native-orientation-locker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-orientation-locker/android')
include ':react-native-fs'
project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android')
include ':react-native-splash-screen'
project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android')
include ':@react-native-community_viewpager'
project(':@react-native-community_viewpager').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/viewpager/android')
include ':app'

View File

@ -0,0 +1,4 @@
{
"name": "Manyverse",
"displayName": "Manyverse"
}

View File

@ -0,0 +1,17 @@
/* Copyright (C) 2018-2019 The Manyverse Authors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import 'react-native-ssb-shims';
import {run} from 'cycle-native-navigation';
import {
screens,
drivers,
welcomeLayout,
defaultNavOptions,
} from './lib/frontend/index';
// import './snoopy'; // Log and debug the React Native JS<-->Native Bridge
run(screens, drivers, welcomeLayout, defaultNavOptions);

View File

@ -0,0 +1,135 @@
{
"name": "manyverse",
"version": "0.1911.27-beta",
"private": true,
"scripts": {
"postinstall": "patch-package",
"lib": "tsc",
"clean-bundler": "watchman watch-del-all && rm -rf $TMPDIR/react-*",
"clean-android": "adb uninstall se.manyver && cd android && ./gradlew clean",
"full-clean": "npm run clean-android && npm run clean-bundler && rm -rf node_modules && rm -rf lib",
"propagate-replacements": "propagate-replacement-fields --field=react-native",
"build-backend": "./tools/build-backend && ./tools/minify-backend",
"build-android-assets": "npm run lib && npm run propagate-replacements && npm run build-backend",
"build-android-debug": "npm run build-android-assets && react-native run-android --variant=indieDebug",
"build-android-release": "npm run build-android-assets && cd android && ./gradlew assembleRelease && cd ..",
"start": "npm run lib && npm run propagate-replacements && react-native start",
"psdr": "./tools/print-service-desk-report.js",
"test-e2e-android": "./tools/test-e2e-android",
"changelog": "npm run update-repo-changelog && npm run update-dat-latest-readme",
"update-repo-changelog": "./tools/update-repo-changelog.js",
"update-dat-latest-readme": "./tools/update-dat-latest-readme.js",
"echo-ssb-post": "./tools/echo-ssb-post.js",
"update-version": "./tools/update-version.js",
"dat-release": "./tools/dat-release",
"commit-release": "./tools/commit-release",
"release": "npm run update-version && npm run clean-bundler && npm run clean-android && npm run build-android-release && npm run test-e2e-android && npm run changelog && npm run commit-release && npm run dat-release && npm run echo-ssb-post"
},
"dependencies": {
"@cycle/isolate": "5.1.0",
"@cycle/react": "2.6.0",
"@cycle/run": "5.3.0",
"@cycle/state": "1.3.0",
"@react-native-community/viewpager": "3.1.0",
"@types/node": "~12.7.5",
"@types/react": "16.9.x",
"@types/react-native": "0.60.23",
"@types/react-native-vector-icons": "6.4.3",
"buffer": "5.4.3",
"color-hash": "1.0.3",
"cycle-native-alert": "1.1.0",
"cycle-native-android-local-notification": "1.1.0",
"cycle-native-asyncstorage": "2.0.0",
"cycle-native-clipboard": "1.0.0",
"cycle-native-keyboard": "1.2.0",
"cycle-native-linking": "1.1.0",
"cycle-native-navigation": "6.1.0",
"cycle-native-share": "1.1.0",
"cycle-native-toastandroid": "1.1.0",
"mdast-normalize-react-native": "3.2.x",
"nodejs-mobile-react-native": "0.5.0",
"path": "~0.12.7",
"promisify-tuple": "1.0.0",
"pull-flat-list": "2.10.0",
"pull-pushable": "2.2.0",
"pull-stream": "3.6.14",
"pull-thenable": "1.0.0",
"react": "16.9.0",
"react-human-time": "^1.1.0",
"react-markdown": "4.0.2",
"react-native": "0.61.5",
"react-native-android-local-notification": "3.0.0",
"react-native-android-wifi": "0.0.41",
"react-native-bluetooth-socket-bridge": "1.2.0",
"react-native-bluetooth-status": "1.3.0",
"react-native-dialogs": "1.1.0",
"react-native-flag-secure-android": "1.0.2",
"react-native-floating-action": "1.19.1",
"react-native-fs": "~2.16.2",
"react-native-has-internet": "4.0.0",
"react-native-image-crop-picker": "~0.26.1",
"react-native-image-view": "~2.1.6",
"react-native-navigation": "4.0.2",
"react-native-orientation-locker": "1.1.7",
"react-native-popup-menu": "0.15.6",
"react-native-splash-screen": "^3.2.0",
"react-native-ssb-client": "7.0.0",
"react-native-ssb-shims": "4.6.0",
"react-native-swiper": "1.5.14",
"react-native-vector-icons": "6.6.0",
"react-propify-methods": "16.3.1",
"react-xstream-hoc": "1.0.0",
"remark": "~9.0.0",
"remark-gemoji-to-emoji": "1.1.0",
"remark-images-to-ssb-serve-blobs": "2.1.0-1",
"remark-linkify-regex": "1.0.0",
"remark-ssb-mentions": "~2.0.0",
"rn-viewpager": "1.2.9",
"ssb-cached-about": "~1.0.0",
"ssb-conn-query": "~0.4.4",
"ssb-ref": "2.13.9",
"ssb-room": "~1.1.1",
"ssb-serve-blobs": "2.1.0",
"ssb-threads": "3.6.0",
"ssb-typescript": "1.4.0",
"xstream": "11.11.0",
"xstream-backoff": "1.0",
"xstream-between": "1.0",
"xstream-from-callback": "1.0",
"xstream-from-pull-stream": "1.1",
"xstream-sample": "1.0"
},
"devDependencies": {
"@babel/core": "~7.7.2",
"@babel/runtime": "~7.7.2",
"add-stream": "~1.0.0",
"conventional-changelog": "~3.1.15",
"husky": "^3.1.0",
"into-stream": "~5.1.1",
"jase": "1.2.0",
"left-pad": "1.3.0",
"metro-react-native-babel-preset": "^0.56.0",
"patch-package": "6.2.0",
"prettier": "~1.19.1",
"pretty-quick": "~2.0.1",
"propagate-replacement-fields": "1.2.0",
"react-native-version": "3.2.0",
"rn-snoopy": "2.0.2",
"tslint": "~5.20.1",
"typescript": "~3.7.2"
},
"optionalDependencies": {
"appium": "1.14.0",
"tap-spec": "5.0.0",
"tape": "~4.9.1",
"wd": "1.11.3"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged --pattern \"**/*.*(ts|tsx|js|jsx)\""
}
},
"react-native": {
"os": "react-native-os-staltz"
}
}

View File

@ -0,0 +1,18 @@
module.exports = {
dependencies: {
'nodejs-mobile-react-native': {
// Ignored because we need to set this up manually in order to
// call some APIs of this library directly in our MainActivity.java
platforms: {
android: null,
},
},
'react-native-bluetooth-socket-bridge': {
// This package needs some config passed as arguments to the constructor
// so we need to "link" it manually in MainApplication.java
platforms: {
android: null,
},
},
},
};

26
tests/test-gradlew-fdroid Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
run_test() {
red='\033[0;31m'
green='\033[0;32m'
nocolor='\033[0m'
cd $basedir/tests/source-files/$1
printf "\n${1}:\n"
if ($basedir/gradlew-fdroid 2>/dev/null || true) | grep -Fo "$2"; then
printf "${green}passed: $1\n"
else
printf "${red}ERROR: $2 not found in $1\n"
((exit_value++))
fi
printf $nocolor
}
exit_value=0
basedir=$(cd $(dirname $0)/..; pwd)
export https_proxy=127.7.7.7:7 # fake proxy to block downloading
run_test osmandapp/osmand 2.2.1
run_test com.integreight.onesheeld 3.3
run_test se.manyver/android 5.5
exit $exit_value