Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 65636eb

Browse files
LaunchDarklyReleaseBotember-stevensyusintoLaunchDarklyReleaseBotdependabot[bot]
authored
prepare 8.0.0 release (#232)
## [8.0.0] - 2023-08-25 ### Added: - Added Automatic Mobile Environment Attributes functionality which makes it simpler to target your mobile customers based on application name or version, or on device characteristics including manufacturer, model, operating system, locale, and so on. To learn more, read [Automatic environment attributes](https://docs.launchdarkly.com/sdk/features/environment-attributes). - Support for RN 0.72. ### Removed - Removed LDUser and related functionality. Use LDContext instead. To learn more, read https://docs.launchdarkly.com/home/contexts. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: Yusinto Ngadiman <[email protected]> Co-authored-by: Yusinto Ngadiman <[email protected]> Co-authored-by: LaunchDarklyReleaseBot <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: tanderson-ld <[email protected]>
1 parent 78c2391 commit 65636eb

30 files changed

+10078
-14616
lines changed

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
CHANGELOG.md
2+
**/android/app/build
3+
**/ios/build
4+
**/ios/Pods
5+
**/Images.xcassets
6+
package-lock.json
7+
yarn.lock

ManualTestApp/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { useState, useEffect, ReactNode } from 'react';
33
import { SafeAreaView, ScrollView, StyleSheet, Text, View, Button, TextInput, Alert, Switch } from 'react-native';
44
import { MOBILE_KEY } from '@env';
55
import { Picker } from '@react-native-picker/picker';
6-
import LDClient, { LDMultiKindContext } from 'launchdarkly-react-native-client-sdk';
6+
import LDClient, { LDConfig, LDMultiKindContext } from 'launchdarkly-react-native-client-sdk';
77
import MessageQueue from 'react-native/Libraries/BatchedBridge/MessageQueue';
88

99
const Wrapper = ({ children }: { children: ReactNode }) => {
@@ -30,8 +30,9 @@ const Body = () => {
3030
useEffect(() => {
3131
async function initializeClient() {
3232
let ldClient = new LDClient();
33-
let config = {
33+
let config: LDConfig = {
3434
mobileKey: MOBILE_KEY,
35+
enableAutoEnvAttributes: true,
3536
debugMode: true,
3637
application: {
3738
id: 'rn-manual-test-app',

ManualTestApp/android/app/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ project.ext.react = [
8282
enableHermes: false, // clean and rebuild if changing
8383
]
8484

85-
apply from: "../../node_modules/react-native/react.gradle"
86-
8785
/**
8886
* Set this to true to create two separate APKs instead of one:
8987
* - An APK that only works on ARM devices
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
rootProject.name = 'ManualTestApp'
22
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
33
include ':app'
4-
includeBuild('../node_modules/react-native-gradle-plugin')
4+
includeBuild('../node_modules/@react-native/gradle-plugin')

ManualTestApp/clean-all.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
# Ripped from: https://gist.githubusercontent.com/townofdon/087c7c0bb773adb158f20339c7e13408/raw/53ccb3430cf870c3cdeecead82bc12c3644f2f53/react-native-nuke.sh
3+
# ReactNative script to clean all the things
4+
# usage:
5+
# - add each item below as a separate script in package.json
6+
# - add one final script:
7+
# - "clean": "yarn clean-node-modules && yarn clean-pods && yarn clean-ios && yarn clean-android && yarn clean-rn-cache"
8+
# - alternatively, copy this shell script and add the following cmd to package.json:
9+
# - "clean": "./react-native-clean-sh"
10+
# - you may need to run `sudo chmod 777 ./react-native-clean-sh before this script can run`
11+
12+
echo " ____ "
13+
echo " __,-~~/~ \`---. "
14+
echo " _/_,---( , ) "
15+
echo " __ / < / ) \___ "
16+
echo " ====------------------===;;;== "
17+
echo " \/ ~\"~\"~\"~\"~\"~\~\"~)~\",1/ "
18+
echo " (_ ( \ ( > \) "
19+
echo " \_( _ < >_>' "
20+
echo " ~ \`-i' ::>|--\" "
21+
echo " I;|.|.| "
22+
echo " <|i::|i|> "
23+
echo " |[::|.| "
24+
echo " ||: | "
25+
echo "______________________REACT NATIVE CLEAN ALL________________ "
26+
27+
# clean-node-modules
28+
rm -rf node_modules && yarn
29+
30+
# clean-pods
31+
cd ios/ && pod cache clean --all && pod deintegrate && rm -rf Pods && rm -rf Podfile.lock && pod install && cd ../
32+
33+
# clean-ios
34+
rm -rf ios/build && rm -rf ~/Library/Developer/Xcode/DerivedData && rm -rf ./ios/DerivedData
35+
36+
# clean-android
37+
cd android && ./gradlew clean && cd ..
38+
39+
# clean-rn-cache
40+
rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && yarn cache clean && watchman watch-del-all
41+
42+
react-native start --reset-cache

ManualTestApp/ios/ManualTestApp.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@
386386
);
387387
MTL_ENABLE_DEBUG_INFO = YES;
388388
ONLY_ACTIVE_ARCH = YES;
389+
OTHER_CFLAGS = "$(inherited)";
390+
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
389391
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
390392
SDKROOT = iphoneos;
391393
};
@@ -444,6 +446,8 @@
444446
"\"$(inherited)\"",
445447
);
446448
MTL_ENABLE_DEBUG_INFO = NO;
449+
OTHER_CFLAGS = "$(inherited)";
450+
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
447451
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
448452
SDKROOT = iphoneos;
449453
VALIDATE_PRODUCT = YES;

0 commit comments

Comments
 (0)