Remove non-FOSS libary and add validator to release workflow (#195)

This commit is contained in:
KoalaSat 2023-01-27 09:37:20 +00:00 committed by GitHub
commit e257dff5ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 5 deletions

View File

@ -31,6 +31,21 @@ jobs:
cd android cd android
./gradlew assembleRelease ./gradlew assembleRelease
- name: 'Check for non-FOSS libraries'
run: |
wget https://github.com/iBotPeaches/Apktool/releases/download/v2.5.0/apktool_2.5.0.jar
wget https://github.com/iBotPeaches/Apktool/raw/master/scripts/linux/apktool
chmod u+x apktool
ln -s apktool_2.5.0.jar apktool.jar
./apktool d android/app/build/outputs/apk/release/app-universal-release.apk
# clone the repo
git clone https://gitlab.com/IzzyOnDroid/repo.git
# create a directory for Apktool and move the apktool* files there
mkdir -p repo/lib/radar/tool
mv app-universal-release* repo/lib/radar/tool
# create an alias for ease of use
repo/bin/scanapk.php android/app/build/outputs/apk/release/app-universal-release.apk
- name: 'Get Commit Hash' - name: 'Get Commit Hash'
id: commit id: commit
uses: pr-mpt/actions-commit-hash@v1 uses: pr-mpt/actions-commit-hash@v1

View File

@ -139,8 +139,8 @@ android {
applicationId "com.nostros" applicationId "com.nostros"
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 30 versionCode 31
versionName "0.2.1.4-alpha" versionName "0.2.1.5-alpha"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
if (isNewArchitectureEnabled()) { if (isNewArchitectureEnabled()) {

View File

@ -3,7 +3,6 @@ import { useTranslation } from 'react-i18next'
import { FlatList, Linking, ListRenderItem, StyleSheet } from 'react-native' import { FlatList, Linking, ListRenderItem, StyleSheet } from 'react-native'
import { Divider, List, Text, useTheme } from 'react-native-paper' import { Divider, List, Text, useTheme } from 'react-native-paper'
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons' import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'
import DeviceInfo from 'react-native-device-info'
interface ItemList { interface ItemList {
key: number key: number
@ -82,7 +81,7 @@ export const AboutPage: React.FC = () => {
)} )}
/> />
), ),
right: <Text>{DeviceInfo.getVersion()}</Text>, right: <Text>v0.2.1.5-alpha</Text>,
onPress: () => {}, onPress: () => {},
}, },
], ],

View File

@ -38,7 +38,6 @@
"react-native": "0.70.6", "react-native": "0.70.6",
"react-native-action-button": "^2.8.5", "react-native-action-button": "^2.8.5",
"react-native-bidirectional-infinite-scroll": "^0.3.3", "react-native-bidirectional-infinite-scroll": "^0.3.3",
"react-native-device-info": "^10.3.0",
"react-native-gesture-handler": "^2.8.0", "react-native-gesture-handler": "^2.8.0",
"react-native-multithreading": "^1.1.1", "react-native-multithreading": "^1.1.1",
"react-native-pager-view": "^6.1.2", "react-native-pager-view": "^6.1.2",